Add support for NServiceBus message serialization via Wire binary serializer.
Already a Patron? skip past this section
It is expected that all developers either become a Patron or have a Tidelift Subscription to use NServiceBusExtensions. Go to licensing FAQ
Support this project by becoming a Sponsor. The company avatar will show up here with a website link. The avatar will also be added to all GitHub repositories under the NServiceBusExtensions organization.
Thanks to all the backing developers. Support this project by becoming a patron.
Support is available via a Tidelift Subscription.
https://nuget.org/packages/NServiceBus.Wire/
configuration.UseSerialization<WireSerializer>();
This serializer does not support messages defined as interfaces. If an explicit interface is sent, an exception will be thrown with the following message:
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.
var options = new SerializerOptions(
preserveObjectReferences: true);
var serialization = configuration.UseSerialization<WireSerializer>();
serialization.Options(options);
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 = configuration.UseSerialization<WireSerializer>();
serialization.ContentTypeKey("custom-key");
To report a security vulnerability, use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
Insulated Wire designed by Arthur Shlain from The Noun Project.