Aracılığıyla paylaş


IHubProtocol.TryParseMessage Yöntem

Tanım

Belirtilen serileştirilmiş gösterimden ve belirtilen bağlayıcıyı kullanarak yeni HubMessage bir oluşturur.

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

Parametreler

input
ReadOnlySequence<Byte>

İletinin serileştirilmiş gösterimi.

binder
IInvocationBinder

İletiyi ayrıştırmak için kullanılan bağlayıcı.

message
HubMessage

Bu yöntem döndürdüğünde true, ayrıştırılmış iletiyi içerir.

Döndürülenler

başarılı bir şekilde ayrıştırıldıysa HubMessage olan bir değertrue; aksi takdirde . false

Şunlara uygulanır