C# Class Griffin.Container.Mvc5.Scope

Our dependency scope implementation
Inheritance: IDependencyScope
Exibir arquivo Open project: jgauffin/Griffin.Container

Public Methods

Method Description
GetService ( Type serviceType ) : object
GetServices ( Type serviceType ) : IEnumerable
Scope ( IChildContainer container, System.Action disposeAction ) : System

Initializes a new instance of the Scope class.

Private Methods

Method Description
Dispose ( ) : void
Dispose ( bool disposing ) : void

Method Details

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object

GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable

Scope() public method

Initializes a new instance of the Scope class.
public Scope ( IChildContainer container, System.Action disposeAction ) : System
container IChildContainer The scoped container.
disposeAction System.Action The dispose action (invoked when the scope is disposed).
return System