Caches the converters that allow a raw object to be published using the object's type through the generic Send method.
Пример #1
0
        Task IPublishEndpoint.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));
        }
Пример #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));
 }