/// <summary> /// Завершение диалога /// </summary> /// <param name="conversationHandle"></param> /// <param name="withCleanup"></param> /// <param name="errorCode"></param> /// <param name="errorDescription"></param> private async Task EndConversation(SqlConnection dbconnection, Guid conversationHandle, bool withCleanup, int?errorCode, string errorDescription) { Debug($"Executing method EndConversation(conversationHandle: {conversationHandle}, withCleanup: {withCleanup}, errorCode: {errorCode}, errorDescription: {errorDescription})"); try { await _manager.EndConversation(dbconnection, conversationHandle, withCleanup, errorCode, errorDescription); } catch (SqlException ex) { DBWrapperExceptionsHelper.ThrowError(ex, ServiceBrokerResources.EndConversationErrMsg, _logger); } catch (Exception ex) { _logger.LogError(ErrorHelper.GetFullMessage(ex)); throw new PPSException(ServiceBrokerResources.EndConversationErrMsg, ex); } }