Serialization

Component: NServiceBus | Nuget: NServiceBus (Version: 3.x)
Standard support for version 3.x of NServiceBus has expired. For more information see our Support Policy.

NServiceBus takes instances of .NET objects (messages, events and commands) and then sends/receives them over a specified Transport. As part of this the object need to be serialized and deserialized. To achieve this NServiceBus uses Serializers.

Supported Serializers

Using an existing serializer

The default serializer used in NServiceBus projects is the custom XmlSerializer.

The pages dedicated to particular Serializers show how to configure the endpoint to use each of them. Unless explicitly configured otherwise, NServiceBus will use XmlSerializer for serializing and deserializing all messages.

The same Serializer must be used by the sending endpoint to serialize messages and by receiving endpoint to deserialize them, unless additional deserializers are specified.

In order to register community run serializer or custom serializer, refer to the Custom serializers - Register the serializer section.

Community run serializers

There are several community run Serializers that can be seen on the list of NServiceBus Extensions.

Samples

Related Articles


Last modified