Share via


HostDependencyResolverExtensions.InitializeHost Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Hosting
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub InitializeHost ( _
    resolver As IDependencyResolver, _
    instanceName As String, _
    hostShutdownToken As CancellationToken _
)
'Usage
Dim resolver As IDependencyResolver 
Dim instanceName As String 
Dim hostShutdownToken As CancellationToken 

resolver.InitializeHost(instanceName, _
    hostShutdownToken)
public static void InitializeHost(
    this IDependencyResolver resolver,
    string instanceName,
    CancellationToken hostShutdownToken
)
[ExtensionAttribute]
public:
static void InitializeHost(
    IDependencyResolver^ resolver, 
    String^ instanceName, 
    CancellationToken hostShutdownToken
)
static member InitializeHost : 
        resolver:IDependencyResolver * 
        instanceName:string * 
        hostShutdownToken:CancellationToken -> unit
public static function InitializeHost(
    resolver : IDependencyResolver, 
    instanceName : String, 
    hostShutdownToken : CancellationToken
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyResolver. 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).

See Also

Reference

HostDependencyResolverExtensions Class

Microsoft.AspNet.SignalR.Hosting Namespace