Share via


MessagePackHubProtocolOptions クラス

定義

MessagePackHubProtocolオプション。

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.MessagePackSecurity.UntrustedData設定MessagePack.MessagePackSecurityすることを強くお勧めします。

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) 既定のオプションを変更する場合は、更新されたオプションも プロパティに SerializerOptions 割り当てる必要があります。 options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());

適用対象