Beispiel #1
0
        Task Send(object message, SendOptions options, TransportMessage incoming)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message), "You cannot send null");
            }

            var sendOptions = options ?? new SendOptions();
            LogicalMessage msg = factory.Create(message, sendOptions.Headers);

            return SendMessage(msg, sendOptions, incoming);
        }
 public Task Send(object message, SendOptions options = null)
 {
     return unit.Send(message, options);
 }
            public Task SendAsync(TransportMessage message, SendOptions options)
            {
                var transportMessage = new TransportMessage(message);

                return onMessage(transportMessage);
            }
Beispiel #4
0
 public Task Send(object message, SendOptions options = null)
 {
     return Send(message, options, null);
 }
Beispiel #5
0
 public Task Send(object message, SendOptions options = null)
 {
     return bus.Send(message, options, incoming);
 }