Beispiel #1
0
        public async Task Send(Envelope envelope)
        {
            envelope.Status = TransportConstants.Outgoing;

            await _agent.StoreAndForward(envelope);

            _logger.Sent(envelope);
        }
Beispiel #2
0
        public Task Send(Envelope envelope)
        {
            foreach (var modifier in _address.Modifiers)
            {
                modifier.Modify(envelope);
            }

            envelope.Status = TransportConstants.Outgoing;

            return(_agent.StoreAndForward(envelope));
        }
Beispiel #3
0
        public async Task Send(Envelope envelope)
        {
            if (envelope.RequiresLocalReply && LocalReplyUri == null)
            {
                throw new InvalidOperationException($"There is no known local reply Uri for channel {_address}, but one is required for this operation");
            }

            ApplyModifications(envelope);

            envelope.Status = TransportConstants.Outgoing;

            await _agent.StoreAndForward(envelope);

            _logger.Sent(envelope);
        }