C# Class Castle.MicroKernel.CreationContext

Inheritance: System.MarshalByRefObject, ISubDependencyResolver
显示文件 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
CanResolve ( CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency ) : bool
CreationContext ( DependencyModel dependencies ) : System
CreationContext ( IHandler handler, DependencyModelCollection dependencies, IList handlersChain ) : System
CreationContext ( IHandler handler, IDictionary additionalArguments ) : System
CreationContext ( IHandler handler, Type typeToExtractGenericArguments, CreationContext parentContext ) : System
CreationContext ( IHandler handler, Type typeToExtractGenericArguments, IDictionary additionalArguments ) : System
HandlerIsCurrentlyBeingResolved ( IHandler handlerToTest ) : bool

Check if we are now in the middle of resolving this handler, and as such, we shouldn't try to resolve that.

Resolve ( CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency ) : object
ResolvingHandler ( IHandler handlerBeingResolved ) : IDisposable

Private Methods

Method Description
ExtractGenericArguments ( Type typeToExtractGenericArguments ) : System.Type[]

Method Details

CanResolve() public method

public CanResolve ( CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency ) : bool
context CreationContext
parentResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
return bool

CreationContext() public method

public CreationContext ( DependencyModel dependencies ) : System
dependencies Castle.Core.DependencyModel
return System

CreationContext() public method

public CreationContext ( IHandler handler, DependencyModelCollection dependencies, IList handlersChain ) : System
handler IHandler
dependencies Castle.Core.DependencyModelCollection
handlersChain IList
return System

CreationContext() public method

public CreationContext ( IHandler handler, IDictionary additionalArguments ) : System
handler IHandler
additionalArguments IDictionary
return System

CreationContext() public method

public CreationContext ( IHandler handler, Type typeToExtractGenericArguments, CreationContext parentContext ) : System
handler IHandler
typeToExtractGenericArguments System.Type
parentContext CreationContext
return System

CreationContext() public method

public CreationContext ( IHandler handler, Type typeToExtractGenericArguments, IDictionary additionalArguments ) : System
handler IHandler
typeToExtractGenericArguments System.Type
additionalArguments IDictionary
return System

HandlerIsCurrentlyBeingResolved() public method

Check if we are now in the middle of resolving this handler, and as such, we shouldn't try to resolve that.
public HandlerIsCurrentlyBeingResolved ( IHandler handlerToTest ) : bool
handlerToTest IHandler
return bool

Resolve() public method

public Resolve ( CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency ) : object
context CreationContext
parentResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
return object

ResolvingHandler() public method

public ResolvingHandler ( IHandler handlerBeingResolved ) : IDisposable
handlerBeingResolved IHandler
return IDisposable