SerializedHubMessage.GetSerializedMessage(IHubProtocol) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.