C# Class Munq.IocContainer

The implementation of the IOC container. Implements the IDependencyRegistrar and IDependencyResolver, along with the IContainerFluent and IDisposable interfaces. The container is thread safe.
Inheritance: IContainerFluent, IDisposable
Exibir arquivo Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

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

Disposes of all Container scoped (ContainerLifetime) instances cached in the type registry, and disposes of the type registry itself.

IocContainer ( ) : System

Initializes a new instance of the IocContainer class; The types IocContainer, IDependencyRegistrar, and IDependencyResolver are all registered to resolve to this instance of the class.

UsesDefaultLifetimeManagerOf ( ILifetimeManager lifetimeManager ) : IContainerFluent

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Implements the Disposed(boolean disposing) method of Disposable pattern.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Disposes of all Container scoped (ContainerLifetime) instances cached in the type registry, and disposes of the type registry itself.
public Dispose ( ) : void
return void

Dispose() protected method

Implements the Disposed(boolean disposing) method of Disposable pattern.
protected Dispose ( bool disposing ) : void
disposing bool True if disposing.
return void

IocContainer() public method

Initializes a new instance of the IocContainer class; The types IocContainer, IDependencyRegistrar, and IDependencyResolver are all registered to resolve to this instance of the class.
public IocContainer ( ) : System
return System

UsesDefaultLifetimeManagerOf() public method

public UsesDefaultLifetimeManagerOf ( ILifetimeManager lifetimeManager ) : IContainerFluent
lifetimeManager ILifetimeManager
return IContainerFluent