HubManagerExtensions.EnsureHub Method
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function EnsureHub ( _
hubManager As IHubManager, _
hubName As String, _
ParamArray counters As IPerformanceCounter() _
) As HubDescriptor
'Usage
Dim hubManager As IHubManager
Dim hubName As String
Dim counters As IPerformanceCounter()
Dim returnValue As HubDescriptor
returnValue = hubManager.EnsureHub(hubName, _
counters)
public static HubDescriptor EnsureHub(
this IHubManager hubManager,
string hubName,
params IPerformanceCounter[] counters
)
[ExtensionAttribute]
public:
static HubDescriptor^ EnsureHub(
IHubManager^ hubManager,
String^ hubName,
... array<IPerformanceCounter^>^ counters
)
static member EnsureHub :
hubManager:IHubManager *
hubName:string *
counters:IPerformanceCounter[] -> HubDescriptor
public static function EnsureHub(
hubManager : IHubManager,
hubName : String,
... counters : IPerformanceCounter[]
) : HubDescriptor
Parameters
- hubManager
Type: Microsoft.AspNet.SignalR.Hubs.IHubManager
- hubName
Type: System.String
- counters
Type: Microsoft.AspNet.SignalR.Infrastructure.IPerformanceCounter[]
Return Value
Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
Returns HubDescriptor.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IHubManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).