MessagePackHubProtocol.GetMessageBytes(HubMessage) 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.
Converts the specified HubMessage to its serialized representation.
public:
virtual 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>
override this.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.