public async Task EnqueueOutgoing(Envelope envelope) { setDefaults(envelope); await _sender.Enqueue(envelope); _messageLogger.Sent(envelope); }
public async Task Send(Envelope envelope) { envelope.Status = TransportConstants.Outgoing; await _agent.StoreAndForward(envelope); _logger.Sent(envelope); }
public Task EnqueueOutgoing(Envelope envelope) { setDefaults(envelope); _sending.Post(envelope); _messageLogger.Sent(envelope); return(Task.CompletedTask); }
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)); }