IHubProtocolResolver.GetProtocol(String, IReadOnlyList<String>) 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 desteklenen protokoller listesi tarafından izin veriliyorsa, belirtilen ada sahip hub protokolunu alır.
public:
Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ GetProtocol(System::String ^ protocolName, System::Collections::Generic::IReadOnlyList<System::String ^> ^ supportedProtocols);
public Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol GetProtocol (string protocolName, System.Collections.Generic.IReadOnlyList<string> supportedProtocols);
public Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol? GetProtocol (string protocolName, System.Collections.Generic.IReadOnlyList<string>? supportedProtocols);
abstract member GetProtocol : string * System.Collections.Generic.IReadOnlyList<string> -> Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol
Public Function GetProtocol (protocolName As String, supportedProtocols As IReadOnlyList(Of String)) As IHubProtocol
Parametreler
- protocolName
- String
Protokol adı.
- supportedProtocols
- IReadOnlyList<String>
Desteklenen protokollerden oluşan bir koleksiyon.
Döndürülenler
Eşleşen veya null
eşleşen IHubProtocol bir protokol bulunamadı.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin