Serializes messages using Google Protocol Buffers.
Interface based message are not supported. Create a class that implements the desired interface
Instead use a public class with the same contract as the interface. The class can optionally implement any required interfaces.
Customizes the instance of
SerializerOptions used for serialization.
When using additional deserializers or transitioning between different versions of the same serializer it can be helpful to take explicit control over the content type a serializer passes to NServiceBus (to be used for the ContentType header).
var serialization = endpointConfiguration.UseSerialization<ProtoBufGoogleSerializer>(); serialization.ContentTypeKey("custom-key");
For more information on Google Protocol Buffers see