Craig's Utility Library
4.0 Beta
|
Bootstrapper base class More...
Public Member Functions | |
void | AddAssembly (params Assembly[] Assemblies) |
Adds the assembly. More... | |
void | Dispose () |
Disposes of the object More... | |
abstract void | Register< T > (T Object, string Name="") |
Registers an object with the bootstrapper More... | |
abstract void | Register< T > (string Name="") |
Registers a type with the default constructor More... | |
abstract void | Register< T1, T2 > (string Name="") |
Registers a type with the default constructor of a child class More... | |
abstract void | Register< T > (Func< T > Function, string Name="") |
Registers a type with a function More... | |
abstract void | RegisterAll< T > () |
Registers all objects of a certain type with the bootstrapper More... | |
abstract T | Resolve< T > (T DefaultObject=default(T)) |
Resolves the object based on the type specified More... | |
abstract T | Resolve< T > (string Name, T DefaultObject=default(T)) |
Resolves the object based on the type specified More... | |
abstract object | Resolve (Type ObjectType, object DefaultObject=null) |
Resolves the object based on the type specified More... | |
abstract object | Resolve (Type ObjectType, string Name, object DefaultObject=null) |
Resolves the object based on the type specified More... | |
abstract IEnumerable< T > | ResolveAll< T > () |
Resolves the objects based on the type specified More... | |
abstract IEnumerable< object > | ResolveAll (Type ObjectType) |
Resolves all objects based on the type specified More... | |
Protected Member Functions | |
BootstrapperBase (IEnumerable< Assembly > assemblies, IEnumerable< Type > types) | |
Constructor More... | |
virtual void | Dispose (bool Managed) |
Disposes of the object More... | |
Properties | |
abstract string | Name [get] |
Name of the bootstrapper More... | |
abstract Container | AppContainer [get] |
The IoC container More... | |
List< Type > | Types [get] |
Gets the types. More... | |
Properties inherited from Utilities.IoC.Interfaces.IBootstrapper | |
string | Name [get] |
Name of the bootstrapper More... | |
Bootstrapper base class
Container | The actual IoC object |
Definition at line 34 of file BootstrapperBase.cs.
|
protected |
Constructor
assemblies | The assemblies. |
types | The types. |
Definition at line 41 of file BootstrapperBase.cs.
void Utilities.IoC.BaseClasses.BootstrapperBase< Container >.AddAssembly | ( | params Assembly[] | Assemblies | ) |
Adds the assembly.
Assemblies | The assemblies. |
Implements Utilities.IoC.Interfaces.IBootstrapper.
Definition at line 73 of file BootstrapperBase.cs.
void Utilities.IoC.BaseClasses.BootstrapperBase< Container >.Dispose | ( | ) |
Disposes of the object
Definition at line 94 of file BootstrapperBase.cs.
|
protectedvirtual |
Disposes of the object
Managed | Determines if all objects should be disposed or just managed objects |
Definition at line 200 of file BootstrapperBase.cs.
|
pure virtual |
Registers an object with the bootstrapper
T | Object type |
Object | Object to register |
Name | Name associated with the object |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
pure virtual |
Registers a type with the default constructor
T | Object type to register |
Name | Name associated with the object |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class | |
T | : | new() |
|
pure virtual |
Registers a type with a function
T | Type that the function returns |
Name | Name associated with the object |
Function | Function to register with the type |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
pure virtual |
Registers a type with the default constructor of a child class
T1 | Base class/interface type |
T2 | Child class type |
Name | Name associated with the object |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T2 | : | class | |
T2 | : | T1 | |
T1 | : | class |
|
pure virtual |
Registers all objects of a certain type with the bootstrapper
T | Object type |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
pure virtual |
Resolves the object based on the type specified
ObjectType | Object type |
DefaultObject | Default object to return if the type can not be resolved |
Implements Utilities.IoC.Interfaces.IBootstrapper.
|
pure virtual |
Resolves the object based on the type specified
ObjectType | Object type |
Name | Name associated with the object |
DefaultObject | Default object to return if the type can not be resolved |
Implements Utilities.IoC.Interfaces.IBootstrapper.
|
pure virtual |
Resolves the object based on the type specified
T | Type to resolve |
DefaultObject | Default object to return if the type can not be resolved |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
pure virtual |
Resolves the object based on the type specified
T | Type to resolve |
Name | Name associated with the object |
DefaultObject | Default object to return if the type can not be resolved |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
pure virtual |
Resolves all objects based on the type specified
ObjectType | Object type |
Implements Utilities.IoC.Interfaces.IBootstrapper.
|
pure virtual |
Resolves the objects based on the type specified
T | Type to resolve |
Implements Utilities.IoC.Interfaces.IBootstrapper.
T | : | class |
|
getprotected |
The IoC container
Definition at line 55 of file BootstrapperBase.cs.
|
get |
Name of the bootstrapper
Definition at line 50 of file BootstrapperBase.cs.
|
getprotected |