NewtonsoftJsonHubProtocol.TryParseMessage Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen serileştirilmiş gösterimden ve belirtilen bağlayıcıyı kullanarak yeni HubMessage bir oluşturur.
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
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