HubProtocolExtensions.GetMessageBytes(IHubProtocol, HubMessage) Метод

Определение

Преобразует указанный HubMessage объект в его сериализованное представление.

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::Byte> ^ GetMessageBytes(Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ hubProtocol, Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ message);
public static byte[] GetMessageBytes (this Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol hubProtocol, Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
static member GetMessageBytes : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * Microsoft.AspNetCore.SignalR.Protocol.HubMessage -> byte[]
<Extension()>
Public Function GetMessageBytes (hubProtocol As IHubProtocol, message As HubMessage) As Byte()

Параметры

hubProtocol
IHubProtocol

Протокол концентратора.

message
HubMessage

Сообщение для преобразования в байты.

Возвращаемое значение

Byte[]

Сериализованное представление указанного сообщения.

Применяется к