C# Class SnakeBattleNet.Web.DependencyResolution.StructureMapDependencyScope

The structure map dependency scope.
Inheritance: ServiceLocatorImplBase, IDependencyScope
Mostrar archivo Open project: FoC-/SnakeBattle.Net

Protected Properties

Property Type Description
Container IContainer

Public Methods

Method Description
Dispose ( ) : void

The dispose.

GetServices ( Type serviceType ) : IEnumerable

The get services.

StructureMapDependencyScope ( IContainer container ) : System

Initializes a new instance of the StructureMapDependencyScope class.

Protected Methods

Method Description
DoGetAllInstances ( Type serviceType ) : IEnumerable

When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances.

DoGetInstance ( Type serviceType, string key ) : object

When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance.

Method Details

Dispose() public method

The dispose.
public Dispose ( ) : void
return void

DoGetAllInstances() protected method

When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances.
protected DoGetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type /// Type of service requested. ///
return IEnumerable

DoGetInstance() protected method

When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance.
protected DoGetInstance ( Type serviceType, string key ) : object
serviceType System.Type /// Type of instance requested. ///
key string /// Name of registered service you want. May be null. ///
return object

GetServices() public method

The get services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type /// The service type. ///
return IEnumerable

StructureMapDependencyScope() public method

Initializes a new instance of the StructureMapDependencyScope class.
///
public StructureMapDependencyScope ( IContainer container ) : System
container IContainer /// The container. ///
return System

Property Details

Container protected_oe property

The container.
protected IContainer Container
return IContainer