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.MessagePackSecurity通过调用:MessagePack.MessagePackSecurity.UntrustedData

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) 如果修改默认选项,还必须将更新的选项分配回 属性 SerializerOptionsoptions.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());

适用于