IHubProtocol.TryParseMessage Method

Definition

Creates a new HubMessage from the specified serialized representation, and using the specified binder.

C#
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
C#
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage? message);

Parameters

input
ReadOnlySequence<Byte>

The serialized representation of the message.

binder
IInvocationBinder

The binder used to parse the message.

message
HubMessage

When this method returns true, contains the parsed message.

Returns

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

Applies to

Tuote Versiot
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0