public async Task Send(CommandSeek command, CancellationToken cancellationToken) { command.ConsumerId = _id; var response = await _connection.Send(command, cancellationToken).ConfigureAwait(false); response.Expect(BaseCommand.Type.Success); _batchHandler.Clear(); }
public async Task <CommandSuccess> Send(CommandSeek command) { command.ConsumerId = _id; var response = await _connection.Send(command); response.Expect(BaseCommand.Type.Success); _batchHandler.Clear(); return(response.Success); }
public async Task <CommandSuccess> Send(CommandSeek command) { try { command.ConsumerId = _id; var response = await _connection.Send(command); response.Expect(BaseCommand.Type.Success); _batchHandler.Clear(); return(response.Success); } catch (Exception exception) { OnException(exception); throw; } }