C# 클래스 Castle.MicroKernel.Context.CreationContext

상속: System.MarshalByRefObject, ISubDependencyResolver
파일 보기 프로젝트 열기: castleproject/Windsor 1 사용 예제들

공개 메소드들

메소드 설명
AttachExistingBurden ( Burden burden ) : void
BuildCycleMessageFor ( IHandler duplicateHandler, System.StringBuilder message ) : void
CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
CreateBurden ( IComponentActivator componentActivator, bool trackedExternally ) : Burden
CreateEmpty ( ) : CreationContext

Creates a new, empty CreationContext instance.

A new CreationContext should be created every time, as the contexts keeps some state related to dependency resolution.

CreationContext ( IHandler handler, IReleasePolicy releasePolicy, Type requestedType, IDictionary additionalArguments, ITypeConverter converter, CreationContext parent ) : System

Initializes a new instance of the CreationContext class.

CreationContext ( Type requestedType, CreationContext parentContext, bool propagateInlineDependencies ) : System

Initializes a new instance of the CreationContext class.

EnterResolutionContext ( IHandler handlerBeingResolved, bool requiresDecommission ) : ResolutionContext
EnterResolutionContext ( IHandler handlerBeingResolved, bool trackContext, bool requiresDecommission ) : ResolutionContext
ForDependencyInspection ( IHandler handler ) : CreationContext
GetContextualProperty ( object key ) : object
IsInResolutionContext ( IHandler handler ) : bool

Method used by handlers to test whether they are being resolved in the context.

This method is provided as part of double dispatch mechanism for use by handlers. Outside of handlers, call IHandler.IsBeingResolvedInContext instead.

Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object
SelectScopeRoot ( IHandler>.Func scopeRootSelector ) : ResolutionContext
SetContextualProperty ( object key, object value ) : void

비공개 메소드들

메소드 설명
CanConvertParameter ( Type type ) : bool
CanResolve ( DependencyModel dependency, object inlineArgument ) : bool
CanResolveByKey ( DependencyModel dependency ) : bool
CanResolveByType ( DependencyModel dependency ) : bool
CreationContext ( ) : System

Initializes a new instance of the CreationContext class.

EnsureAdditionalArgumentsWriteable ( IDictionary dictionary ) : IDictionary
ExitResolutionContext ( Burden burden, bool trackContext ) : void
ExtractGenericArguments ( Type typeToExtractGenericArguments ) : System.Type[]
Resolve ( DependencyModel dependency, object inlineArgument ) : object

메소드 상세

AttachExistingBurden() 공개 메소드

public AttachExistingBurden ( Burden burden ) : void
burden Burden
리턴 void

BuildCycleMessageFor() 공개 메소드

public BuildCycleMessageFor ( IHandler duplicateHandler, System.StringBuilder message ) : void
duplicateHandler IHandler
message System.StringBuilder
리턴 void

CanResolve() 공개 메소드

public CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
context CreationContext
contextHandlerResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
리턴 bool

CreateBurden() 공개 메소드

public CreateBurden ( IComponentActivator componentActivator, bool trackedExternally ) : Burden
componentActivator IComponentActivator
trackedExternally bool
리턴 Burden

CreateEmpty() 공개 정적인 메소드

Creates a new, empty CreationContext instance.
A new CreationContext should be created every time, as the contexts keeps some state related to dependency resolution.
public static CreateEmpty ( ) : CreationContext
리턴 CreationContext

CreationContext() 공개 메소드

Initializes a new instance of the CreationContext class.
public CreationContext ( IHandler handler, IReleasePolicy releasePolicy, Type requestedType, IDictionary additionalArguments, ITypeConverter converter, CreationContext parent ) : System
handler IHandler The handler.
releasePolicy IReleasePolicy The release policy.
requestedType System.Type The type to extract generic arguments.
additionalArguments IDictionary The additional arguments.
converter ITypeConverter The conversion manager.
parent CreationContext Parent context
리턴 System

CreationContext() 공개 메소드

Initializes a new instance of the CreationContext class.
public CreationContext ( Type requestedType, CreationContext parentContext, bool propagateInlineDependencies ) : System
requestedType System.Type The type to extract generic arguments.
parentContext CreationContext The parent context.
propagateInlineDependencies bool When set to true will clone .
리턴 System

EnterResolutionContext() 공개 메소드

public EnterResolutionContext ( IHandler handlerBeingResolved, bool requiresDecommission ) : ResolutionContext
handlerBeingResolved IHandler
requiresDecommission bool
리턴 ResolutionContext

EnterResolutionContext() 공개 메소드

public EnterResolutionContext ( IHandler handlerBeingResolved, bool trackContext, bool requiresDecommission ) : ResolutionContext
handlerBeingResolved IHandler
trackContext bool
requiresDecommission bool
리턴 ResolutionContext

ForDependencyInspection() 공개 정적인 메소드

public static ForDependencyInspection ( IHandler handler ) : CreationContext
handler IHandler
리턴 CreationContext

GetContextualProperty() 공개 메소드

public GetContextualProperty ( object key ) : object
key object
리턴 object

IsInResolutionContext() 공개 메소드

Method used by handlers to test whether they are being resolved in the context.
This method is provided as part of double dispatch mechanism for use by handlers. Outside of handlers, call IHandler.IsBeingResolvedInContext instead.
public IsInResolutionContext ( IHandler handler ) : bool
handler IHandler
리턴 bool

Resolve() 공개 메소드

public Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object
context CreationContext
contextHandlerResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
리턴 object

SelectScopeRoot() 공개 메소드

public SelectScopeRoot ( IHandler>.Func scopeRootSelector ) : ResolutionContext
scopeRootSelector IHandler>.Func
리턴 ResolutionContext

SetContextualProperty() 공개 메소드

public SetContextualProperty ( object key, object value ) : void
key object
value object
리턴 void