MessagePackHubProtocol Klasa

Definicja

Implementuje protokół usługi SignalR Hub przy użyciu pakietu MessagePack.

public ref class MessagePackHubProtocol : Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol
public class MessagePackHubProtocol : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol
type MessagePackHubProtocol = class
    interface IHubProtocol
Public Class MessagePackHubProtocol
Implements IHubProtocol
Dziedziczenie
MessagePackHubProtocol
Implementuje

Konstruktory

MessagePackHubProtocol()

Inicjuje nowe wystąpienie klasy MessagePackHubProtocol.

MessagePackHubProtocol(IOptions<MessagePackHubProtocolOptions>)

Inicjuje nowe wystąpienie klasy MessagePackHubProtocol.

Właściwości

Name

Pobiera nazwę protokołu. Nazwa jest używana przez usługę SignalR do rozpoznawania protokołu między klientem a serwerem.

TransferFormat

Pobiera format transferu protokołu.

Version

Pobiera wersję główną protokołu.

Metody

GetMessageBytes(HubMessage)

Konwertuje określoną HubMessage na jego serializowaną reprezentację.

IsVersionSupported(Int32)

Pobiera wartość wskazującą, czy protokół obsługuje określoną wersję.

TryParseMessage(ReadOnlySequence<Byte>, IInvocationBinder, HubMessage)

Tworzy nową HubMessage z określonej serializacji reprezentacji i używa określonego powiązania.

WriteMessage(HubMessage, IBufferWriter<Byte>)

Zapisuje określony HubMessage element w składniku zapisywania.

Metody rozszerzania

GetMessageBytes(IHubProtocol, HubMessage)

Konwertuje określoną HubMessage na jego serializowaną reprezentację.

Dotyczy