private Diff ( string left, string right, string user, string pass ) : |
||
left | string | |
right | string | |
user | string | |
pass | string | |
Результат |
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) }; } } }
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) }); } } }