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); }
public Task Send(object message, SendOptions options = null) { return Send(message, options, null); }
public Task Send(object message, SendOptions options = null) { return bus.Send(message, options, incoming); }