Publish() public static method

public static Publish ( IPublishEndpoint endpoint, object message, Type messageType, CancellationToken cancellationToken = default(CancellationToken) ) : Task
endpoint IPublishEndpoint
message object
messageType System.Type
cancellationToken System.Threading.CancellationToken
return Task
Ejemplo n.º 1
0
        public virtual Task Publish(object message, IPipe <PublishContext> publishPipe, CancellationToken cancellationToken)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            var messageType = message.GetType();

            return(PublishEndpointConverterCache.Publish(this, message, messageType, publishPipe, cancellationToken));
        }
Ejemplo n.º 2
0
 public virtual Task Publish(object message, Type messageType, IPipe <PublishContext> publishPipe, CancellationToken cancellationToken)
 {
     return(PublishEndpointConverterCache.Publish(this, message, messageType, publishPipe, cancellationToken));
 }
 Task IPublishEndpoint.Publish(object message, Type messageType, CancellationToken cancellationToken)
 {
     return(PublishEndpointConverterCache.Publish(this, message, messageType, cancellationToken));
 }