Compartilhar via


MessagePackHubProtocol.TryParseMessage Método

Definição

Cria um novo HubMessage da representação serializada especificada e usando o associador especificado.

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

Parâmetros

input
ReadOnlySequence<Byte>

A representação serializada da mensagem.

binder
IInvocationBinder

O associador usado para analisar a mensagem.

message
HubMessage

Quando esse método retorna true, contém a mensagem analisada.

Retornos

Um valor que será true se o HubMessage tiver sido analisado com êxito; caso contrário, false.

Implementações

Aplica-se a