Craig's Utility Library  4.0 Beta
Utilities.IoC.Default.DefaultBootstrapper Class Reference

Default bootstrapper if one isn't found More...

Inheritance diagram for Utilities.IoC.Default.DefaultBootstrapper:

Public Member Functions

 DefaultBootstrapper (IEnumerable< Assembly > assemblies, IEnumerable< Type > types)
 Constructor More...
 
override void Register< T > (T Object, string Name="")
 Registers an object More...
 
override void Register< T > (string Name="")
 Registers an object More...
 
override void Register< T1, T2 > (string Name="")
 Registers two types together More...
 
override void Register< T > (Func< T > Function, string Name="")
 Registers a function with a type More...
 
override void RegisterAll< T > ()
 Registers all objects of a certain type with the bootstrapper More...
 
override T Resolve< T > (T DefaultObject=default(T))
 Resolves an object based on the type specified More...
 
override T Resolve< T > (string Name, T DefaultObject=default(T))
 Resolves an object based on the type specified More...
 
override object Resolve (Type ObjectType, object DefaultObject=null)
 Resolves an object based on the type specified More...
 
override object Resolve (Type ObjectType, string Name, object DefaultObject=null)
 Resolves an object based on the type specified More...
 
override IEnumerable< T > ResolveAll< T > ()
 Resolves all objects of the type specified More...
 
override IEnumerable< object > ResolveAll (Type ObjectType)
 Resolves all objects of the type specified More...
 
override string ToString ()
 Converts the bootstrapper to a string More...
 

Protected Member Functions

override void Dispose (bool Managed)
 Disposes of the object More...
 

Properties

override string Name [get]
 Name of the bootstrapper More...
 
override IDictionary< Tuple< Type, string >, ITypeBuilderAppContainer [get]
 App container More...
 

Detailed Description

Default bootstrapper if one isn't found

Definition at line 38 of file DefaultBootstrapper.cs.

Constructor & Destructor Documentation

Utilities.IoC.Default.DefaultBootstrapper.DefaultBootstrapper ( IEnumerable< Assembly >  assemblies,
IEnumerable< Type >  types 
)

Constructor

Parameters
assembliesThe assemblies.
typesThe types.

Definition at line 45 of file DefaultBootstrapper.cs.

Member Function Documentation

override void Utilities.IoC.Default.DefaultBootstrapper.Dispose ( bool  Managed)
protected

Disposes of the object

Parameters
ManagedNot used

Definition at line 258 of file DefaultBootstrapper.cs.

override void Utilities.IoC.Default.DefaultBootstrapper.Register< T > ( Object,
string  Name = "" 
)

Registers an object

Template Parameters
TType to register
Parameters
ObjectObject to return
NameName to associate with it

Definition at line 96 of file DefaultBootstrapper.cs.

override void Utilities.IoC.Default.DefaultBootstrapper.Register< T > ( string  Name = "")

Registers an object

Template Parameters
TType to register
Parameters
NameName to associate with it

Definition at line 106 of file DefaultBootstrapper.cs.

override void Utilities.IoC.Default.DefaultBootstrapper.Register< T > ( Func< T >  Function,
string  Name = "" 
)

Registers a function with a type

Template Parameters
TType to register
Parameters
FunctionFunction used to create the type
NameName to associate with the function

Definition at line 137 of file DefaultBootstrapper.cs.

override void Utilities.IoC.Default.DefaultBootstrapper.Register< T1, T2 > ( string  Name = "")

Registers two types together

Template Parameters
T1Interface/base class
T2Implementation
Parameters
NameName to associate with it

Definition at line 117 of file DefaultBootstrapper.cs.

override void Utilities.IoC.Default.DefaultBootstrapper.RegisterAll< T > ( )

Registers all objects of a certain type with the bootstrapper

Template Parameters
TObject type

Definition at line 149 of file DefaultBootstrapper.cs.

override object Utilities.IoC.Default.DefaultBootstrapper.Resolve ( Type  ObjectType,
object  DefaultObject = null 
)

Resolves an object based on the type specified

Parameters
ObjectTypeObject type
DefaultObjectDefault value if type is not registered or error occurs
Returns
Object of the type specified

Definition at line 192 of file DefaultBootstrapper.cs.

override object Utilities.IoC.Default.DefaultBootstrapper.Resolve ( Type  ObjectType,
string  Name,
object  DefaultObject = null 
)

Resolves an object based on the type specified

Parameters
NameName of the object to return
ObjectTypeObject type
DefaultObjectDefault value if type is not registered or error occurs
Returns
Object of the type specified

Definition at line 204 of file DefaultBootstrapper.cs.

override T Utilities.IoC.Default.DefaultBootstrapper.Resolve< T > ( DefaultObject = default(T))

Resolves an object based on the type specified

Template Parameters
TType of object to return
Parameters
DefaultObjectDefault value if type is not registered or error occurs
Returns
Object of the type specified

Definition at line 169 of file DefaultBootstrapper.cs.

override T Utilities.IoC.Default.DefaultBootstrapper.Resolve< T > ( string  Name,
DefaultObject = default(T) 
)

Resolves an object based on the type specified

Template Parameters
TType of object to return
Parameters
DefaultObjectDefault value if type is not registered or error occurs
NameName of the object to return
Returns
Object of the type specified

Definition at line 181 of file DefaultBootstrapper.cs.

override IEnumerable<object> Utilities.IoC.Default.DefaultBootstrapper.ResolveAll ( Type  ObjectType)

Resolves all objects of the type specified

Parameters
ObjectTypeObject type to return
Returns
An IEnumerable containing all objects of the type specified

Definition at line 230 of file DefaultBootstrapper.cs.

override IEnumerable<T> Utilities.IoC.Default.DefaultBootstrapper.ResolveAll< T > ( )

Resolves all objects of the type specified

Template Parameters
TType of objects to return
Returns
An IEnumerable containing all objects of the type specified

Definition at line 220 of file DefaultBootstrapper.cs.

override string Utilities.IoC.Default.DefaultBootstrapper.ToString ( )

Converts the bootstrapper to a string

Returns
String version of the bootstrapper

Definition at line 244 of file DefaultBootstrapper.cs.

Property Documentation

override IDictionary<Tuple<Type, string>, ITypeBuilder> Utilities.IoC.Default.DefaultBootstrapper.AppContainer
getprotected

App container

Definition at line 66 of file DefaultBootstrapper.cs.

override string Utilities.IoC.Default.DefaultBootstrapper.Name
get

Name of the bootstrapper

Definition at line 58 of file DefaultBootstrapper.cs.


The documentation for this class was generated from the following file: