Megosztás a következőn keresztül:


IHubProtocol.TryParseMessage Method

Definition

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

public:
 bool TryParseMessage(System::Buffers::ReadOnlySequence<System::Byte> % input, Microsoft::AspNetCore::SignalR::IInvocationBinder ^ binder, [Runtime::InteropServices::Out] Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ % message);
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage? message);
abstract member TryParseMessage : ReadOnlySequence * Microsoft.AspNetCore.SignalR.IInvocationBinder * HubMessage -> bool
Public Function TryParseMessage (ByRef input As ReadOnlySequence(Of Byte), binder As IInvocationBinder, ByRef message As HubMessage) As Boolean

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