public Task Publish(object message, PublishOptions options = null)
 {
     return(this.unit.Publish(message, options));
 }
Exemple #2
0
 public Task Publish(object message, PublishOptions options = null)
 {
     return(this.Publish(message, options, incoming: null));
 }
Exemple #3
0
 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);
 }
Exemple #5
0
        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);
        }