C# Class Griffin.Container.Mvc4.GriffinDependencyResolver

Griffin.Container implementation
Inheritance: IDependencyResolver
Exibir arquivo Open project: jgauffin/Griffin.Container Class Usage Examples

Public Methods

Method Description
DisposeChildContainer ( ) : void

Dispose current child container (if any)

GetService ( Type serviceType ) : object

Resolves singly registered services that support arbitrary object creation.

GetServices ( Type serviceType ) : IEnumerable

Resolves multiply registered services.

GriffinDependencyResolver ( IParentContainer container ) : System

Initializes a new instance of the GriffinDependencyResolver class.

Private Methods

Method Description
CreateAndStartChildContainer ( ) : IChildContainer

Method Details

DisposeChildContainer() public static method

Dispose current child container (if any)
public static DisposeChildContainer ( ) : void
return void

GetService() public method

Resolves singly registered services that support arbitrary object creation.
public GetService ( Type serviceType ) : object
serviceType System.Type The type of the requested service or object.
return object

GetServices() public method

Resolves multiply registered services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type The type of the requested services.
return IEnumerable

GriffinDependencyResolver() public method

Initializes a new instance of the GriffinDependencyResolver class.
public GriffinDependencyResolver ( IParentContainer container ) : System
container IParentContainer The container.
return System