MessagePackHubProtocolOptions Class
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.
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());
|