MessagePackHubProtocolOptions.SerializerOptions Property

Definition

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

Applies to