Interface IContext
The IContext class hosts the dependency IContainer and the blueprints of most of the dependencies to its contract types. It uses the IInstaller during Bind() and Unbind() to setup and teardown the dependency graph in the IContainer.
Namespace: IdleKit.IoC
Assembly: cs.temp.dll.dll
Syntax
public interface IContext
Properties
container
Returns the dependency IContainer stored.
Declaration
IContainer container { get; }
Property Value
Type | Description |
---|---|
IContainer |
installer
Returns the IInstaller that is being used.
Declaration
IInstaller installer { get; }
Property Value
Type | Description |
---|---|
IInstaller |
Methods
Bind()
Binds all the dependency to its contract type.
Declaration
void Bind()
Unbind()
Unbinds all the dependency from its contract type
Declaration
void Unbind()