コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
            }
        }