public Task Publish(object message, PublishOptions options = null) { return(this.unit.Publish(message, options)); }
public Task Publish(object message, PublishOptions options = null) { return(this.Publish(message, options, incoming: null)); }
public Task Publish(object message, PublishOptions options = null) { return this.Publish(message, options, incoming: null); }
public Task Publish(object message, PublishOptions options = null) { return this.unit.Publish(message, options); }
private Task Publish(object message, PublishOptions options, TransportMessage incoming) { if (message == null) { throw new ArgumentNullException("message", "You cannot publish null"); } var publishOptions = options ?? new PublishOptions(); LogicalMessage msg = this.factory.Create(message, publishOptions.Headers); publishOptions.EventType = msg.MessageType; return this.SendMessage(msg, publishOptions, incoming); }