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.
Implements
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