Share via


HandshakeProtocol.TryParseResponseMessage Method

Definition

Creates a new HandshakeResponseMessage from the specified serialized representation.

public:
 static bool TryParseResponseMessage(System::Buffers::ReadOnlySequence<System::Byte> % buffer, [Runtime::InteropServices::Out] Microsoft::AspNetCore::SignalR::Protocol::HandshakeResponseMessage ^ % responseMessage);
public static bool TryParseResponseMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage);
public static bool TryParseResponseMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage? responseMessage);
static member TryParseResponseMessage : ReadOnlySequence * HandshakeResponseMessage -> bool
Public Shared Function TryParseResponseMessage (ByRef buffer As ReadOnlySequence(Of Byte), ByRef responseMessage As HandshakeResponseMessage) As Boolean

Parameters

buffer
ReadOnlySequence<Byte>

The serialized representation of the message.

responseMessage
HandshakeResponseMessage

When this method returns, contains the parsed message.

Returns

A value that is true if the HandshakeResponseMessage was successfully parsed; otherwise, false.

Applies to