C# Class MassTransit.Context.PublishEndpointConverterCache

Caches the converters that allow a raw object to be published using the object's type through the generic Send method.
Mostrar archivo Open project: MassTransit/MassTransit Class Usage Examples

Public Methods

Method Description
Publish ( IPublishEndpoint endpoint, object message, Type messageType, CancellationToken cancellationToken = default(CancellationToken) ) : Task
Publish ( IPublishEndpoint endpoint, object message, Type messageType, IPipe pipe, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
CreateConverter ( Type type ) : IPublishEndpointConverter
CreateTypeConverter ( Type type ) : Lazy
this ( Type type ) : IPublishEndpointConverter

Method Details

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

Publish() public static method

public static Publish ( IPublishEndpoint endpoint, object message, Type messageType, IPipe pipe, CancellationToken cancellationToken = default(CancellationToken) ) : Task
endpoint IPublishEndpoint
message object
messageType System.Type
pipe IPipe
cancellationToken System.Threading.CancellationToken
return Task