Share via


MessagePackHubProtocolOptions Class

Definition

The MessagePackHubProtocol options.

public ref class MessagePackHubProtocolOptions
public class MessagePackHubProtocolOptions
type MessagePackHubProtocolOptions = class
Public Class MessagePackHubProtocolOptions
Inheritance
MessagePackHubProtocolOptions

Constructors

MessagePackHubProtocolOptions()

Properties

FormatterResolvers
SerializationContext
SerializerOptions

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());

Applies to