IServiceHubContextStore.GetAsync(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 Microsoft.Azure.SignalR.Management.IServiceHubContext. If the Microsoft.Azure.SignalR.Management.IServiceHubContext for a specific hub name exists, returns the Microsoft.Azure.SignalR.Management.IServiceHubContext, otherwise creates one and then returns it.
public System.Threading.Tasks.ValueTask<Microsoft.Azure.SignalR.Management.IServiceHubContext> GetAsync(string hubName);
abstract member GetAsync : string -> System.Threading.Tasks.ValueTask<Microsoft.Azure.SignalR.Management.IServiceHubContext>
Public Function GetAsync (hubName As String) As ValueTask(Of IServiceHubContext)
Parameters
- hubName
- String
is the hub name of the Microsoft.Azure.SignalR.Management.IServiceHubContext.
Returns
The returned value is an instance of Microsoft.Azure.SignalR.Management.IServiceHubContext.
Applies to
Azure SDK for .NET