Exemple #1
0
        public async Task EnqueueOutgoing(Envelope envelope)
        {
            setDefaults(envelope);
            await _sender.Enqueue(envelope);

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

            await _agent.StoreAndForward(envelope);

            _logger.Sent(envelope);
        }
Exemple #3
0
        public Task EnqueueOutgoing(Envelope envelope)
        {
            setDefaults(envelope);
            _sending.Post(envelope);
            _messageLogger.Sent(envelope);

            return(Task.CompletedTask);
        }
Exemple #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));
        }
        public Task EnqueueOutgoing(Envelope envelope)
        {
            _messageLogger.Sent(envelope);

            return(Enqueue(envelope));
        }