C# Класс Castle.MicroKernel.Context.CreationContext.CreationContext

Наследование: ISubDependencyResolver
Показать файл Открыть проект

Открытые методы

Метод Описание
AddContextualProperty ( object key, object value ) : void
CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
CreationContext ( IHandler handler, IReleasePolicy releasePolicy, Type requestedType, IDictionary additionalArguments, ITypeConverter conversionManager, 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 ) : ResolutionContext
EnterResolutionContext ( IHandler handlerBeingResolved, bool createBurden ) : ResolutionContext
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

Приватные методы

Метод Описание
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 ) : void
ExtractGenericArguments ( Type typeToExtractGenericArguments ) : System.Type[]

Описание методов

AddContextualProperty() публичный Метод

public AddContextualProperty ( object key, object value ) : void
key object
value object
Результат 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

CreationContext() публичный Метод

Initializes a new instance of the CreationContext class.
public CreationContext ( IHandler handler, IReleasePolicy releasePolicy, Type requestedType, IDictionary additionalArguments, ITypeConverter conversionManager, 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.
conversionManager 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 ) : ResolutionContext
handlerBeingResolved IHandler
Результат ResolutionContext

EnterResolutionContext() публичный Метод

public EnterResolutionContext ( IHandler handlerBeingResolved, bool createBurden ) : ResolutionContext
handlerBeingResolved IHandler
createBurden bool
Результат ResolutionContext

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