C# Class MassTransit.Context.SendEndpointConverterCache

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

Public Methods

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

Private Methods

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

Method Details

Send() public static method

public static Send ( ISendEndpoint endpoint, object message, Type messageType, CancellationToken cancellationToken = default(CancellationToken) ) : Task
endpoint ISendEndpoint
message object
messageType System.Type
cancellationToken System.Threading.CancellationToken
return Task

Send() public static method

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