C# Class Griffin.Container.Mvc4.Scope

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

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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

Initializes a new instance of the Scope class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

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