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 dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure. Switch to a safer serializer. Refer to the Migration from BinaryFormatter for details.