IDependencyResolver.Register Method (Type, Func<Object>)
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Sub Register ( _
serviceType As Type, _
activator As Func(Of Object) _
)
'Usage
Dim instance As IDependencyResolver
Dim serviceType As Type
Dim activator As Func(Of Object)
instance.Register(serviceType, activator)
void Register(
Type serviceType,
Func<Object> activator
)
void Register(
Type^ serviceType,
Func<Object^>^ activator
)
abstract Register :
serviceType:Type *
activator:Func<Object> -> unit
function Register(
serviceType : Type,
activator : Func<Object>
)
Parameters
- serviceType
Type: System.Type
- activator
Type: System.Func<Object>