Getting Started
Architecture
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

DataBus Binary Serializer

NuGet Package: NServiceBus.DataBus.BinarySerializer (1.x)
Target Version: NServiceBus 8.x

This DataBus serializer uses the BinaryFormatter to serialize and deserialize data bus properties.

#pragma warning disable CS0618 // Type or member is obsolete
        endpointConfiguration.UseDataBus<FileShareDataBus, BinaryFormatterDataBusSerializer>();
#pragma warning restore CS0618 // Type or member is obsolete
BinaryFormatter is not supported in .NET 5. For projects that target .NET 5 and later, migrate to a safer serializer.

Samples


Last modified