IDependencyResolver.GetService Method

.NET Framework 4.5

Returns the service for the given type.

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

Syntax

'Declaration
Function GetService ( _
    serviceType As Type _
) As Object
'Usage
Dim instance As IDependencyResolver 
Dim serviceType As Type 
Dim returnValue As Object 

returnValue = instance.GetService(serviceType)
Object GetService(
    Type serviceType
)
Object^ GetService(
    Type^ serviceType
)
abstract GetService : 
        serviceType:Type -> Object
function GetService(
    serviceType : Type
) : Object

Parameters

  • serviceType
    Type: System.Type
    The type of the service to return.

Return Value

Type: System.Object
The returned service.

See Also

Reference

IDependencyResolver Interface

Microsoft.AspNet.SignalR Namespace