public async Task <CommandHandlingResult> Handle(CreateOffchainCashoutRequestCommand command, IEventPublisher eventPublisher) { var sw = new Stopwatch(); sw.Start(); try { await _offchainRequestService.CreateOffchainRequestAndNotify( transactionId : command.Id, clientId : command.ClientId, assetId : command.AssetId, amount : command.Amount, orderId : null, type : OffchainTransferType.TrustedCashout); ChaosKitty.Meow(); return(CommandHandlingResult.Ok()); } finally { sw.Stop(); _log.Info("Command execution time", context: new { TxHandler = new { Handler = nameof(OffchainCommandHandler), Command = nameof(CreateOffchainCashoutRequestCommand), Time = sw.ElapsedMilliseconds } }); } }
public async Task <CommandHandlingResult> Handle(CreateOffchainCashoutRequestCommand command, IEventPublisher eventPublisher) { await _offchainRequestService.CreateOffchainRequestAndNotify( transactionId : command.Id, clientId : command.ClientId, assetId : command.AssetId, amount : command.Amount, orderId : null, type : OffchainTransferType.TrustedCashout); ChaosKitty.Meow(); return(CommandHandlingResult.Ok()); }