Sdílet prostřednictvím


NewtonsoftJsonHubProtocol.TryParseMessage Metoda

Definice

Vytvoří nový HubMessage ze zadané serializované reprezentace a pomocí zadaného pořadače.

public:
 virtual 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
override this.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

Parametry

input
ReadOnlySequence<Byte>

Serializovaná reprezentace zprávy.

binder
IInvocationBinder

Pořadač použitý k analýze zprávy.

message
HubMessage

Když tato metoda vrátí true, obsahuje analyzovanou zprávu.

Návraty

Hodnota, která jetrue, pokud HubMessage byla úspěšně parsována; v opačném případě . false

Implementuje

Platí pro