MessagePackHubProtocolOptions Klasa

Definicja

public ref class MessagePackHubProtocolOptions
public class MessagePackHubProtocolOptions
type MessagePackHubProtocolOptions = class
Public Class MessagePackHubProtocolOptions
Dziedziczenie
MessagePackHubProtocolOptions

Konstruktory

MessagePackHubProtocolOptions()

Opcje MessagePackHubProtocol .

Właściwości

FormatterResolvers

Opcje MessagePackHubProtocol .

SerializationContext

Opcje MessagePackHubProtocol .

SerializerOptions

Pobiera lub ustawia MessagePack.MessagePackSerializerOptions element używany wewnętrznie przez element MessagePack.MessagePackSerializer.

Jeśli zastąpisz wartość domyślną, zdecydowanie zalecamy ustawienie wartości MessagePack.MessagePackSecurity na MessagePack.MessagePackSecurity.UntrustedData wartość przez wywołanie metody :

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) Jeśli zmodyfikujesz opcje domyślne, musisz również przypisać zaktualizowane opcje z powrotem do SerializerOptions właściwości: options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());

Dotyczy