52. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/23/2019 1:16:31 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

52.1 Files compared

# Location File Last Modified
1 PATS_R_SourceCode.zip\MVI Search\MVI Search.Plugins.RunTests Program.cs Mon Apr 22 18:19:08 2019 UTC
2 PATS_R_SourceCode.zip\MVI Search\MVI Search.Plugins.RunTests Program.cs Thu May 23 01:58:47 2019 UTC

52.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 228
Changed 1 4
Inserted 0 0
Removed 0 0

52.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

52.4 Active regular expressions

No regular expressions were active.

52.5 Comparison detail

  1   using VEIS .Plugins.M essages;
  2   using VEIS .Plugins.M odels;
  3   using Syst em;
  4   using Syst em.Collect ions.Gener ic;
  5   using Syst em.IO;
  6   using Syst em.Linq;
  7   using Syst em.Net;
  8   using Syst em.Text;
  9   using Syst em.Threadi ng.Tasks;
  10  
  11  
  12   namespace  VEIS.Plugi ns.RunTest s
  13   {
  14       class  Program
  15       {
  16           st atic void  Main(strin g[] args)
  17           {
  18                try
  19                {
  20                    stri ng str = D ateTime.No w.ToString ("MM-dd-yy yy");
  21                    //MO DEBUG wire  up the ve isConfigur ation need  to move t his to set tings
  22                    Mode ls.VeisCon figuration  config =  new Models .VeisConfi guration()
  23                    {
  24                         CRMAuthInf o = new Mo dels.CRMAu thTokenCon figuration ()
  25                         {
  26                             Client Applicatio nId = "58d 50ca3-b921 -4d9b-ac76 -8965be2eb 80b",
  27                             Client Secret = " 4RdVDdhq8c v/h2263Ojd y8fD3JI9Ow Hcr5hOkntA wTc=",
  28                             Tenant Id = "f7c4 9e36-971b- 42c7-b244- a88eed6c0b f6",
  29                             Resour ceId = "4a 77476c-cee d-45db-ad7 e-ac2bbbc4 f72a"
  30                         },
  31                         SvcConfigI nfo = new  Models.VEI SSvcLOBCon figuration ()
  32                         {
  33                             ApimSu bscription Key = "887 84cf9396e4 1dab087c90 a5da0c2c1" ,
  34                               //SvcLOBSe rviceUrl =  "https:// DNS . URL /veis",
  35                               SvcLOBServ iceUrl = " https:// DNS . URL "
  36                         },
  37                         VASTRefres hFacilityA PI = "/api /VASTListR efresh/1.0 /json/ftpc rm"
  38                    };
  39  
  40                    Pers onSearchRe quest sear chRequest  = new Pers onSearchRe quest();
  41                    //Se tQueryStri ng(config,  localCont ext, (Pers onSearchRe quest)sear chRequest,  request.Q uery.crite ria);
  42                    sear chRequest. MessageId  = Guid.New Guid().ToS tring();
  43                    sear chRequest. Organizati onName = " TEST";
  44                    sear chRequest. UserId = n ew Guid();
  45                    sear chRequest. Debug = fa lse;
  46                    sear chRequest. LogSoap =  false;
  47                    sear chRequest. LogTiming  = false;
  48  
  49  
  50                    //va r searchRe sponse = P rogram.Sen dReceiveVe isRequest< PersonSear chResponse >(new Uri( veisConfig uration.Sv cConfigInf o.SvcLOBSe rviceUrl),  "SearchPe rson", sea rchRequest , veisConf iguration) ;
  51                   
  52                    //Ve isConfig c onfig = Re trieveVeis Config("pa tsr_vastli strefresha piurl", "p atsr_mvisu bscription key");
  53  
  54                    var  vASTRefres hResponse  = WebApiUt ility.Rece iveVeisReq uest<Messa ges.VASTRe freshRespo nse>(confi g, config. VASTRefres hFacilityA PI + "/" +  "03-04-20 19");
  55                    Cons ole.Write( vASTRefres hResponse. ErrorMessa ge);
  56                    Cons ole.Write( vASTRefres hResponse. Data[0].to talItems.T oString()) ;
  57  
  58                }
  59                catch (E xception e x)
  60                {
  61                    Cons ole.WriteL ine(ex.ToS tring());
  62                }
  63                Console. ReadLine() ;
  64           }
  65  
  66           pu blic stati c T SendRe ceiveVeisR equest<T>( Uri baseUr i, string  messageId,  VeisReque st request , VeisConf iguration  config)
  67           {
  68                try
  69                {
  70                    if ( (System.Ne t.ServiceP ointManage r.Security Protocol &  SecurityP rotocolTyp e.Tls12) = = 0)
  71                    {
  72                         System.Net .ServicePo intManager .SecurityP rotocol =  SecurityPr otocolType .Tls | Sec urityProto colType.Tl s11 | Secu rityProtoc olType.Tls 12;
  73                    }
  74  
  75                    usin g (WebClie nt client  = new WebC lient())
  76                    {
  77                         Uri uri;
  78                         if (config .SvcConfig Info.SvcLO BServiceUr l.EndsWith ("/"))
  79                         {
  80                             uri =  new Uri(co nfig.SvcCo nfigInfo.S vcLOBServi ceUrl + me ssageId);
  81                         }
  82                         else
  83                         {
  84                             uri =  new Uri(co nfig.SvcCo nfigInfo.S vcLOBServi ceUrl + "/ " + messag eId);
  85                         }
  86                         client.Add AuthHeader (config.CR MAuthInfo) ;
  87                         Console.Wr iteLine("A uth Header : " + clie nt.Headers [HttpReque stHeader.A uthorizati on]);
  88                         string req Body = Jso nHelper.Se rialize(re quest);
  89                         client.Hea ders[HttpR equestHead er.Content Type] = "a pplication /json";
  90                         client.Hea ders.Add(" Ocp-Apim-S ubscriptio n-Key", co nfig.SvcCo nfigInfo.A pimSubscri ptionKey);
  91                         string res ponse = cl ient.Uploa dString(ur i.Absolute Uri, reqBo dy);
  92                         return Jso nHelper.De serialize< T>(respons e);
  93                    }
  94                }
  95  
  96                catch (W ebExceptio n exceptio n)
  97                {
  98                    stri ng callRes ponse = st ring.Empty ;
  99                    if ( exception. Response ! = null)
  100                    {
  101                         using (Str eamReader  reader = n ew StreamR eader(exce ption.Resp onse.GetRe sponseStre am()))
  102                         {
  103                             callRe sponse = r eader.Read ToEnd();
  104                         }
  105                         exception. Response.C lose();
  106                    }
  107                    if ( exception. Status ==  WebExcepti onStatus.T imeout)
  108                    {
  109                         throw new  Exception( "The timeo ut elapsed  while att empting to  issue the  request." , exceptio n);
  110                    }
  111                    thro w new Exce ption($"A  Web except ion occurr ed while a ttempting  to issue t he request . {excepti on.Message }: {callRe sponse}",  exception) ;
  112                }
  113           }
  114  
  115       }
  116   }