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.