HandshakeProtocol.TryParseRequestMessage 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.
Creates a new HandshakeRequestMessage from the specified serialized representation.
public:
static bool TryParseRequestMessage(System::Buffers::ReadOnlySequence<System::Byte> % buffer, [Runtime::InteropServices::Out] Microsoft::AspNetCore::SignalR::Protocol::HandshakeRequestMessage ^ % requestMessage);
public static bool TryParseRequestMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage);
public static bool TryParseRequestMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage? requestMessage);
static member TryParseRequestMessage : ReadOnlySequence * HandshakeRequestMessage -> bool
Public Shared Function TryParseRequestMessage (ByRef buffer As ReadOnlySequence(Of Byte), ByRef requestMessage As HandshakeRequestMessage) As Boolean
Parameters
- buffer
- ReadOnlySequence<Byte>
The serialized representation of the message.
- requestMessage
- HandshakeRequestMessage
When this method returns, contains the parsed message.
Returns
A value that is true
if the HandshakeRequestMessage was successfully parsed; otherwise, false
.