Exemplo n.º 1
0
        public async Task EnqueueOutgoing(Envelope envelope)
        {
            setDefaults(envelope);
            await _sender.Enqueue(envelope);

            _messageLogger.Sent(envelope);
        }
Exemplo n.º 2
0
        public async Task Send(Envelope envelope)
        {
            envelope.Status = TransportConstants.Outgoing;

            await _agent.StoreAndForward(envelope);

            _logger.Sent(envelope);
        }
Exemplo n.º 3
0
        public Task EnqueueOutgoing(Envelope envelope)
        {
            setDefaults(envelope);
            _sending.Post(envelope);
            _messageLogger.Sent(envelope);

            return(Task.CompletedTask);
        }
Exemplo n.º 4
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);
        }
        public Task EnqueueOutgoing(Envelope envelope)
        {
            _messageLogger.Sent(envelope);
            envelope.ReplyUri   = envelope.ReplyUri ?? ReplyUri;
            envelope.ReceivedAt = Destination;

            return(envelope.IsDelayed(DateTime.UtcNow)
                ? ScheduleExecution(envelope)
                : Enqueue(envelope));
        }
Exemplo n.º 6
0
        public Task EnqueueOutgoing(Envelope envelope)
        {
            _messageLogger.Sent(envelope);

            return(Enqueue(envelope));
        }