IHubProtocolResolver.GetProtocol(String, IReadOnlyList<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the hub protocol with the specified name, if it is allowed by the specified list of supported protocols.
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
Parameters
- protocolName
- String
The protocol name.
- supportedProtocols
- IReadOnlyList<String>
A collection of supported protocols.
Returns
A matching IHubProtocol or null
if no matching protocol was found.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for