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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for