MessagePackHubProtocolOptions.SerializerOptions Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the MessagePack.MessagePackSerializerOptions used internally by the MessagePack.MessagePackSerializer.
If you override the default value, we strongly recommend that you set MessagePack.MessagePackSecurity to MessagePack.MessagePackSecurity.UntrustedData by calling:
customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData)
If you modify the default options you must also assign the updated options back to the SerializerOptions property:
options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());
public MessagePack.MessagePackSerializerOptions SerializerOptions { get; set; }
member this.SerializerOptions : MessagePack.MessagePackSerializerOptions with get, set
Public Property SerializerOptions As MessagePackSerializerOptions
Property Value
MessagePack.MessagePackSerializerOptions