/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='senderId'> /// </param> /// <param name='recieverId'> /// </param> /// <param name='minTransfer'> /// </param> /// <param name='maxTransfer'> /// </param> /// <param name='dateFrom'> /// </param> /// <param name='dateTo'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetPaymentLogsAsync(this IPaymentLog operations, string senderId = default(string), string recieverId = default(string), double?minTransfer = default(double?), double?maxTransfer = default(double?), System.DateTime?dateFrom = default(System.DateTime?), System.DateTime?dateTo = default(System.DateTime?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPaymentLogsWithHttpMessagesAsync(senderId, recieverId, minTransfer, maxTransfer, dateFrom, dateTo, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='senderId'> /// </param> /// <param name='recieverId'> /// </param> /// <param name='minTransfer'> /// </param> /// <param name='maxTransfer'> /// </param> /// <param name='dateFrom'> /// </param> /// <param name='dateTo'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetPaymentLogsAsync(this IPaymentLog operations, string senderId = default(string), string recieverId = default(string), double?minTransfer = default(double?), double?maxTransfer = default(double?), System.DateTime?dateFrom = default(System.DateTime?), System.DateTime?dateTo = default(System.DateTime?), CancellationToken cancellationToken = default(CancellationToken)) { // fake exception for testing global exception filter throw new InvalidOperationException("Can't get payments"); using (var _result = await operations.GetPaymentLogsWithHttpMessagesAsync(senderId, recieverId, minTransfer, maxTransfer, dateFrom, dateTo, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public LoggingController(IErrorLog errorLogService, IAccountLog accountLogService, IPaymentLog paymentLogService, IQueryLog queryLogService, ITicketActionLog ticketActionLogService, ITicketDealLog ticketDealLogService) { _errorLogService = errorLogService; _accountLogService = accountLogService; _paymentLogService = paymentLogService; _queryLogService = queryLogService; _ticketActionLogService = ticketActionLogService; _ticketDealLogService = ticketDealLogService; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='senderId'> /// </param> /// <param name='recieverId'> /// </param> /// <param name='minTransfer'> /// </param> /// <param name='maxTransfer'> /// </param> /// <param name='dateFrom'> /// </param> /// <param name='dateTo'> /// </param> public static object GetPaymentLogs(this IPaymentLog operations, string senderId = default(string), string recieverId = default(string), double?minTransfer = default(double?), double?maxTransfer = default(double?), System.DateTime?dateFrom = default(System.DateTime?), System.DateTime?dateTo = default(System.DateTime?)) { return(operations.GetPaymentLogsAsync(senderId, recieverId, minTransfer, maxTransfer, dateFrom, dateTo).GetAwaiter().GetResult()); }