Diff() private method

private Diff ( string left, string right, string user, string pass ) : DiffResult
left string
right string
user string
pass string
return DiffResult
Example #1
0
 public linux.DiffResult GetDiff(string left, string right)
 {
     using (var service = new linux.Service())
     {
         try
         {
             var res = service.Diff(GlobalUtils.Utils.Compress(left), GlobalUtils.Utils.Compress(right), GlobalUtils.TopSecret.Linux_user, GlobalUtils.TopSecret.Linux_pass);
             res.Result = GlobalUtils.Utils.Decompress(res.Result);
             return res;
         }
         catch (Exception ex)
         {
             return new linux.DiffResult()
             {
                 IsError = true,
                 Result = string.Format("Error while calling diff service: {0}", ex.Message)
             };
         }
     }
 }
Example #2
0
 public linux.DiffResult GetDiff(string left, string right)
 {
     using (var service = new linux.Service())
     {
         try
         {
             var res = service.Diff(GlobalUtils.Utils.Compress(left), GlobalUtils.Utils.Compress(right), GlobalUtils.TopSecret.Linux_user, GlobalUtils.TopSecret.Linux_pass);
             res.Result = GlobalUtils.Utils.Decompress(res.Result);
             return(res);
         }
         catch (Exception ex)
         {
             return(new linux.DiffResult()
             {
                 IsError = true,
                 Result = string.Format("Error while calling diff service: {0}", ex.Message)
             });
         }
     }
 }