public Task Route(EnvelopeFromClient envelope) { var delivery = _state.GetEnvelopes(envelope) .Select(d => { var transporter = _config.Transporters.GetTransporter(d.To); if (transporter == null) { this.LogError($"There is no transporter defined for {d.To}"); return(TasksUtils.EmptyTask()); } return(Send(transporter, d)); }).ToArray(); return(Task.WhenAll(delivery)); }
public Task SendMessages(EnvelopeFromClient envelope) => TasksUtils.EmptyTask();
public Task Add(string queueId, IEnumerable <IMessage> items) => TasksUtils.EmptyTask();