Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public Task SendMessages(EnvelopeFromClient envelope) => TasksUtils.EmptyTask();
Esempio n. 3
0
 public Task Add(string queueId, IEnumerable <IMessage> items)
 => TasksUtils.EmptyTask();