Craig's Utility Library
4.0 Beta
|
Bootstrapper interface More...
Public Member Functions | |
void | AddAssembly (params Assembly[] Assemblies) |
Adds the assembly. More... | |
void | Register< T > (T Object, string Name="") |
Registers an object with the bootstrapper More... | |
void | Register< T > (string Name="") |
Registers a type with the default constructor More... | |
void | Register< T1, T2 > (string Name="") |
Registers a type with the default constructor of a child class More... | |
void | Register< T > (Func< T > Function, string Name="") |
Registers a type with a function More... | |
void | RegisterAll< T > () |
Registers all objects of a certain type with the bootstrapper More... | |
T | Resolve< T > (T DefaultObject=default(T)) |
Resolves the object based on the type specified More... | |
T | Resolve< T > (string Name, T DefaultObject=default(T)) |
Resolves the object based on the type specified More... | |
object | Resolve (Type ObjectType, object DefaultObject=null) |
Resolves the object based on the type specified More... | |
object | Resolve (Type ObjectType, string Name, object DefaultObject=null) |
Resolves the object based on the type specified More... | |
IEnumerable< T > | ResolveAll< T > () |
Resolves the objects based on the type specified More... | |
IEnumerable< object > | ResolveAll (Type ObjectType) |
Resolves all objects based on the type specified More... | |
Properties | |
string | Name [get] |
Name of the bootstrapper More... | |
Bootstrapper interface
Definition at line 34 of file IBootstrapper.cs.
void Utilities.IoC.Interfaces.IBootstrapper.AddAssembly | ( | params Assembly[] | Assemblies | ) |
Adds the assembly.
Assemblies | The assemblies. |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
void Utilities.IoC.Interfaces.IBootstrapper.Register< T > | ( | T | Object, |
string | Name = "" |
||
) |
Registers an object with the bootstrapper
T | Object type |
Object | Object to register |
Name | Name associated with the object |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
void Utilities.IoC.Interfaces.IBootstrapper.Register< T > | ( | string | Name = "" | ) |
Registers a type with the default constructor
T | Object type to register |
Name | Name associated with the object |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class | |
T | : | new() |
void Utilities.IoC.Interfaces.IBootstrapper.Register< T > | ( | Func< T > | Function, |
string | Name = "" |
||
) |
Registers a type with a function
T | Type that the function returns |
Function | Function to register with the type |
Name | Name associated with the object |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
void Utilities.IoC.Interfaces.IBootstrapper.Register< T1, T2 > | ( | string | Name = "" | ) |
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 |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T2 | : | class | |
T2 | : | T1 | |
T1 | : | class |
void Utilities.IoC.Interfaces.IBootstrapper.RegisterAll< T > | ( | ) |
Registers all objects of a certain type with the bootstrapper
T | Object type |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
object Utilities.IoC.Interfaces.IBootstrapper.Resolve | ( | Type | ObjectType, |
object | DefaultObject = null |
||
) |
Resolves the object based on the type specified
ObjectType | Object type |
DefaultObject | Default object to return if the type can not be resolved |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
object Utilities.IoC.Interfaces.IBootstrapper.Resolve | ( | Type | ObjectType, |
string | Name, | ||
object | DefaultObject = null |
||
) |
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 |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T Utilities.IoC.Interfaces.IBootstrapper.Resolve< T > | ( | T | DefaultObject = default(T) | ) |
Resolves the object based on the type specified
T | Type to resolve |
DefaultObject | Default object to return if the type can not be resolved |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
T Utilities.IoC.Interfaces.IBootstrapper.Resolve< T > | ( | string | Name, |
T | DefaultObject = default(T) |
||
) |
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 |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
IEnumerable<object> Utilities.IoC.Interfaces.IBootstrapper.ResolveAll | ( | Type | ObjectType | ) |
Resolves all objects based on the type specified
ObjectType | Object type |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
IEnumerable<T> Utilities.IoC.Interfaces.IBootstrapper.ResolveAll< T > | ( | ) |
Resolves the objects based on the type specified
T | Type to resolve |
Implemented in Utilities.IoC.BaseClasses.BootstrapperBase< Container >.
T | : | class |
|
get |
Name of the bootstrapper
Definition at line 39 of file IBootstrapper.cs.