Summer.Batch.Core.Unity.Registration< TFrom, TTo > Class Template Reference

Registration More...

Public Member Functions

 Registration (LifetimeManager lifetimeManager, IUnityContainer container)
 Creates a new Registration<TFrom,TTo> with the specified lifetime manager and container. More...
 
 Registration (string name, LifetimeManager lifetimeManager, IUnityContainer container)
 Creates a new Registration<TFrom,TTo> with the specified name, lifetime manager, and container. More...
 
void Register (params InjectionMember[] addititionalInjectionMembers)
 Performs the actual registration. More...
 
Registration< TFrom, TTo > Constructor ()
 Specifies a new constructor injection. More...
 
Registration< TFrom, TTo > Method (string name)
 Specifies a new method injection. More...
 
Registration< TFrom, TTo > Property (string name)
 Specifies a new property injection. More...
 
Registration< TFrom, TTo > Instance (object value)
 Specifies an instance as value for the previous injection. More...
 
Registration< TFrom, TTo > Value (object value)
 Specifies a value for the previous injection. More...
 
Registration< TFrom, TTo > Reference< T > (string referenceName=null)
 Specifies a reference for the previous injection. More...
 
Registration< TFrom, TTo > References< T > (params Type[] types)
 Specifies a list of types to resolve and inject as an array. More...
 
Registration< TFrom, TTo > References< T > (params string[] names)
 Specifies a list of names to resolve and inject as an array. More...
 
Registration< TFrom, TTo > References< T > (params Reference[] references)
 Specifies a list of types and names to resolve and inject as an array. More...
 
Registration< TFrom, TTo > LateBinding< T > (string lateBinding)
 Specifies a late binding expression to be resolved at injection. More...
 
Registration< TFrom, TTo > Resource (string path)
 Specifies a single resource for the previous injection. More...
 
Registration< TFrom, TTo > Resources (string path)
 Specifies a list of resources for the previous injection. More...
 

Detailed Description

Registration

Template Parameters
TFrom 
TTo 

Constructor & Destructor Documentation

Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Registration ( LifetimeManager  lifetimeManager,
IUnityContainer  container 
)

Creates a new Registration<TFrom,TTo> with the specified lifetime manager and container.

Parameters
lifetimeManagerthe lifetime manager of the registration
containerthe container where to register
Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Registration ( string  name,
LifetimeManager  lifetimeManager,
IUnityContainer  container 
)

Creates a new Registration<TFrom,TTo> with the specified name, lifetime manager, and container.

Parameters
namethe name of the registration
lifetimeManagerthe lifetime manager of the registration
containerthe container where to register

Member Function Documentation

Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Constructor ( )

Specifies a new constructor injection.

Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Instance ( object  value)

Specifies an instance as value for the previous injection.

Parameters
valuethe instance to inject
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.LateBinding< T > ( string  lateBinding)

Specifies a late binding expression to be resolved at injection.

Template Parameters
T the type returned by the late binding expression
Parameters
lateBindingthe late binding expression
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Method ( string  name)

Specifies a new method injection.

Parameters
namethe name of the injected method
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Property ( string  name)

Specifies a new property injection.

Parameters
namethe name of the property
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Reference< T > ( string  referenceName = null)

Specifies a reference for the previous injection.

Template Parameters
T the requested type for the reference
Parameters
referenceNamethe name of the reference
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.References< T > ( params Type[]  types)

Specifies a list of types to resolve and inject as an array.

Template Parameters
T the type of the array to inject
Parameters
typesthe types to resolve to create the array
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.References< T > ( params string[]  names)

Specifies a list of names to resolve and inject as an array.

Template Parameters
T the type of the array to inject
Parameters
namesthe names to resolve to create the array
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.References< T > ( params Reference[]  references)

Specifies a list of types and names to resolve and inject as an array.

Template Parameters
T the type of the array to inject
Parameters
referencesthe types and their corresponding name to resolve to create the array
Returns
the current instance
void Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Register ( params InjectionMember[]  addititionalInjectionMembers)

Performs the actual registration.

Parameters
addititionalInjectionMembersadditional injection members that will be added to those previously specified
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Resource ( string  path)

Specifies a single resource for the previous injection.

Parameters
paththe path of the resource (can use the LateBindingConfigurationParser syntax)
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Resources ( string  path)

Specifies a list of resources for the previous injection.

Parameters
paththe paths of the resources (can use the LateBindingConfigurationParser syntax)
Returns
the current instance
Registration<TFrom, TTo> Summer.Batch.Core.Unity.Registration< TFrom, TTo >.Value ( object  value)

Specifies a value for the previous injection.

Parameters
valuethe instance to inject
Returns
the current instance

The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Unity/Registration.cs