Megosztás a következőn keresztül:


IHubProtocol.GetMessageBytes(HubMessage) Method

Definition

Converts the specified HubMessage to its serialized representation.

public:
 ReadOnlyMemory<System::Byte> GetMessageBytes(Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ message);
public ReadOnlyMemory<byte> GetMessageBytes (Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
abstract member GetMessageBytes : Microsoft.AspNetCore.SignalR.Protocol.HubMessage -> ReadOnlyMemory<byte>
Public Function GetMessageBytes (message As HubMessage) As ReadOnlyMemory(Of Byte)

Parameters

message
HubMessage

The message to convert.

Returns

The serialized representation of the message.

Applies to