Class PublishEndpointConverterCache
- Namespace
- MassTransit.Context
- Assembly
- MassTransit.Abstractions.dll
Caches the converters that allow a raw object to be published using the object's type through the generic Send method.
public class PublishEndpointConverterCache
- Inheritance
-
PublishEndpointConverterCache
- Inherited Members
Constructors
PublishEndpointConverterCache()
public PublishEndpointConverterCache()
Methods
Publish(IPublishEndpoint, object, Type, IPipe<PublishContext>, CancellationToken)
public static Task Publish(IPublishEndpoint endpoint, object message, Type messageType, IPipe<PublishContext> pipe, CancellationToken cancellationToken = default)
Parameters
endpoint
IPublishEndpointmessage
objectmessageType
Typepipe
IPipe<PublishContext>cancellationToken
CancellationToken
Returns
Publish(IPublishEndpoint, object, Type, CancellationToken)
public static Task Publish(IPublishEndpoint endpoint, object message, Type messageType, CancellationToken cancellationToken = default)
Parameters
endpoint
IPublishEndpointmessage
objectmessageType
TypecancellationToken
CancellationToken