Пример #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
 /// <summary>
 /// Сохранить кредитную историю асинхронно.
 /// </summary>
 /// <param name="account1CCode">Номер кредитного договора в 1С</param>
 /// <param name="client1CCode">Код клиента 1С</param>
 /// <param name="signedXml">Подписанные НБКИ данные</param>
 /// <param name="unSignedXml">Анкета НБКИ без подписи</param>
 /// <param name="clientTimeZone">Часовой пояс на клиенте</param>
 /// <param name="error">Ошибка из сервиса НБКИ</param>
 public async Task WriteCreditHistoryAsync(string account1CCode, string client1CCode, byte[] signedXml,
                                           byte[] unSignedXml, int clientTimeZone, CTErr error) =>
 await WriteCreditHistoryAsync(account1CCode, client1CCode, signedXml, unSignedXml, clientTimeZone, error,
                               CancellationToken.None);
Пример #3
0
 /// <summary>
 /// Сохранить кредитную историю асинхронно.
 /// </summary>
 /// <param name="account1CCode">Номер кредитного договора в 1С</param>
 /// <param name="client1CCode">Код клиента 1С</param>
 /// <param name="signedXml">Подписанные НБКИ данные</param>
 /// <param name="unSignedXml">Анкета НБКИ без подписи</param>
 /// <param name="clientTimeZone">Часовой пояс на клиенте</param>
 /// <param name="error">Ошибка из сервиса НБКИ</param>
 public async Task WriteCreditHistoryAsync(string account1CCode, string client1CCode, byte[] signedXml,
                                           byte[] unSignedXml, int clientTimeZone, CTErr error) =>
 await Channel.WriteCreditHistoryAsync(account1CCode, client1CCode, signedXml, unSignedXml,
                                       clientTimeZone, error);