Service.LinuxService.GetDiff C# (CSharp) Method

GetDiff() public method

public GetDiff ( string left, string right ) : DiffResult
left string
right string
return Service.linux.DiffResult
        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)
                    };
                }
            }
        }