C# Класс 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.
Наследование: IContainerFluent, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Описание методов

Dispose() публичный Метод

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
Результат void

Dispose() защищенный Метод

Implements the Disposed(boolean disposing) method of Disposable pattern.
protected Dispose ( bool disposing ) : void
disposing bool True if disposing.
Результат void

IocContainer() публичный Метод

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
Результат System

UsesDefaultLifetimeManagerOf() публичный Метод

public UsesDefaultLifetimeManagerOf ( ILifetimeManager lifetimeManager ) : IContainerFluent
lifetimeManager ILifetimeManager
Результат IContainerFluent