Interface IMessageSerializer
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A message serializer is responsible for serializing a message. Shocking, I know.
public interface IMessageSerializerProperties
ContentType
ContentType ContentType { get; }Property Value
Methods
GetMessageBody<T>(SendContext<T>)
Returns a message body, for the serializer, which can be used by the transport to obtain the serialized message in the desired format.
MessageBody GetMessageBody<T>(SendContext<T> context) where T : classParameters
- contextSendContext<T>
Returns
Type Parameters
- T