共用方式為


MessagePackHubProtocolOptions 類別

定義

public ref class MessagePackHubProtocolOptions
public class MessagePackHubProtocolOptions
type MessagePackHubProtocolOptions = class
Public Class MessagePackHubProtocolOptions
繼承
MessagePackHubProtocolOptions

建構函式

MessagePackHubProtocolOptions()

MessagePackHubProtocol選項。

屬性

FormatterResolvers

MessagePackHubProtocol選項。

SerializationContext

MessagePackHubProtocol選項。

SerializerOptions

取得或設定 MessagePack.MessagePackSerializerOptions 內部使用的 MessagePack.MessagePackSerializer

如果您覆寫預設值,強烈建議您藉由呼叫 來設定 MessagePack.MessagePackSecurityMessagePack.MessagePackSecurity.UntrustedData

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) 如果您修改預設選項,您也必須將更新的選項指派回 SerializerOptions 屬性: options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());

適用於