C# Class Summer.Batch.Core.Unity.StepScope.StepScopeStrategy

Builder strategy for step scope. It should be added at the UnityBuildStage.PreCreation stage. Before the instance is created, it checks resolvers for the constructor parameters, properties, and method parameters. If any dependency is in the step scope but the current instance being built is not, the resolver is overriden using StepScopeOverride.
Inheritance: Microsoft.Practices.ObjectBuilder2.BuilderStrategy
ファイルを表示 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
PreBuildUp ( IBuilderContext context ) : void

Checks if resolvers need to be overriden.

Private Methods

Method Description
AddMethodParameterDependency ( string>.Dictionary methodParameters, string>.Tuple key, Summer.Batch.Core.Unity.StepScope.StepScopeDependency dependency ) : void
GetSignature ( MethodBase method ) : string
ResolveConstructorParameters ( SelectedConstructor constructor, StepScopeDependency>.Dictionary constructorParameters ) : void
ResolveMethodParameters ( IBuilderContext context, IMethodSelectorPolicy methodSelector, IPolicyList resolverPolicyDestination, string>.Dictionary methodParameters ) : void
ResolveProperties ( IBuilderContext context, IPropertySelectorPolicy propertySelector, IPolicyList resolverPolicyDestination, StepScopeDependency>.Dictionary properties ) : void

Method Details

PreBuildUp() public method

Checks if resolvers need to be overriden.
public PreBuildUp ( IBuilderContext context ) : void
context IBuilderContext Context of the build operation.
return void