Dela via


HandshakeProtocol.TryParseRequestMessage Method

Definition

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.

Applies to