示例#1
0
        public async Task WriteCreditHistoryAsync(string account1CCode, string client1CCode, byte[] signedXml,
                                                  byte[] unSignedXml, int clientTimeZone, CTErr error) =>

        await ExecuteWithTryCatchAsync <WCFServiceNBCH>(() =>
                                                        ServiceNBCH.WriteCreditHistoryAsync(account1CCode, client1CCode, signedXml, unSignedXml, clientTimeZone,
                                                                                            error),
                                                        new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, account1CCode: {account1CCode}," +
                                                                            " client1CCode: {client1CCode}, signedXml {signedXml} байт, unSignedXml {unSignedXml} байт," +
                                                                            " clientTimeZone: {clientTimeZone}, error: {error} .",
                                                                            "WriteCreditHistoryAsync", account1CCode, client1CCode,
                                                                            signedXml?.Length.ToString() ?? "null", unSignedXml?.Length.ToString() ?? "null",
                                                                            clientTimeZone, error));
示例#2
0
 public Report GetSavedReport(int creditHistoryID) =>
 ExecuteWithTryCatch <Report, WCFServiceNBCH>(() => ServiceNBCH.GetSavedReport(creditHistoryID),
                                              new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, creditHistoryID: {creditHistoryID}.",
                                                                  "GetSavedReport", creditHistoryID));
示例#3
0
 public async Task <CreditHistoryInfo[]> GetCreditHistoryListByCreditHistoryIDAsync(int creditHistoryID) =>
 await ExecuteWithTryCatchAsync <CreditHistoryInfo[], WCFServiceNBCH>(() =>
                                                                      ServiceNBCH.GetCreditHistoryListByCreditHistoryIDAsync(creditHistoryID),
                                                                      new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, creditHistoryID: {creditHistoryID}.",
                                                                                          "GetCreditHistoryListByCreditHistoryIDAsync", creditHistoryID));
示例#4
0
 public CreditHistoryInfo[] GetCreditHistoryListByCreditHistoryID(int creditHistoryID) =>
 ExecuteWithTryCatch <CreditHistoryInfo[], WCFServiceNBCH>(() =>
                                                           ServiceNBCH.GetCreditHistoryListByCreditHistoryID(creditHistoryID),
                                                           new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, creditHistoryID: {creditHistoryID}.",
                                                                               "GetCreditHistoryListByCreditHistoryID", creditHistoryID));
示例#5
0
 public async Task <CreditHistoryInfo[]> GetCreditHistoryListAsync(string client1CCode) =>
 await ExecuteWithTryCatchAsync <CreditHistoryInfo[], WCFServiceNBCH>(() =>
                                                                      ServiceNBCH.GetCreditHistoryListAsync(client1CCode),
                                                                      new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, client1CCode: {client1CCode}.",
                                                                                          "GetCreditHistoryListAsync", client1CCode));
示例#6
0
 public CreditHistoryInfo[] GetCreditHistoryList(string client1CCode) =>
 ExecuteWithTryCatch <CreditHistoryInfo[], WCFServiceNBCH>(() =>
                                                           ServiceNBCH.GetCreditHistoryList(client1CCode),
                                                           new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, client1CCode: {client1CCode}.",
                                                                               "GetCreditHistoryList", client1CCode));
示例#7
0
 public async Task <SearchClientList[]> SearchClientAsync(string fio) =>
 await ExecuteWithTryCatchAsync <SearchClientList[], WCFServiceNBCH>(() =>
                                                                     ServiceNBCH.SearchClientAsync(fio),
                                                                     new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, fio: {fio}.",
                                                                                         "SearchClientAsync", fio));
示例#8
0
 public SearchClientList[] SearchClient(string fio) =>
 ExecuteWithTryCatch <SearchClientList[], WCFServiceNBCH>(() => ServiceNBCH.SearchClient(fio),
                                                          new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, fio: {fio}.", "SearchClient", fio));
示例#9
0
 public async Task <Report> GetSavedReportAsync(int creditHistoryID) =>
 await ExecuteWithTryCatchAsync <Report, WCFServiceNBCH>(() =>
                                                         ServiceNBCH.GetSavedReportAsync(creditHistoryID),
                                                         new LogShortMessage("Ошибка вызова метода. Метод: {methodName}, creditHistoryID: {creditHistoryID}.",
                                                                             "GetSavedReportAsync", creditHistoryID));