Share via


SerializedHubMessage.GetSerializedMessage(IHubProtocol) Method

Definition

Gets the serialized representation of the HubMessage using the specified IHubProtocol.

public:
 ReadOnlyMemory<System::Byte> GetSerializedMessage(Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol);
public ReadOnlyMemory<byte> GetSerializedMessage (Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol);
member this.GetSerializedMessage : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol -> ReadOnlyMemory<byte>
Public Function GetSerializedMessage (protocol As IHubProtocol) As ReadOnlyMemory(Of Byte)

Parameters

protocol
IHubProtocol

The protocol used to create the serialized representation.

Returns

The serialized representation of the HubMessage.

Applies to