MessagePackHubProtocolOptions.SerializerOptions Vlastnost

Definice

Získá nebo nastaví MessagePack.MessagePackSerializerOptions používané interně pomocí MessagePack.MessagePackSerializer.

Pokud přepíšete výchozí hodnotu, důrazně doporučujeme nastavit MessagePack.MessagePackSecurity MessagePack.MessagePackSecurity.UntrustedData voláním:

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) Pokud upravíte výchozí možnosti, musíte také přiřadit aktualizované možnosti zpět vlastnosti SerializerOptions : options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());
public MessagePack.MessagePackSerializerOptions SerializerOptions { get; set; }
member this.SerializerOptions : MessagePack.MessagePackSerializerOptions with get, set
Public Property SerializerOptions As MessagePackSerializerOptions

Hodnota vlastnosti

MessagePack.MessagePackSerializerOptions

Platí pro