C# Class Castle.MicroKernel.Handlers.ParentHandlerWithChildResolver

Redirects resolution to the main resolver, and if not found uses the parent handler.
Inheritance: IHandler, IDisposable
Mostra file Open project: 7digital/Castle.Windsor

Public Methods

Method Description
AddCustomDependencyValue ( object key, object value ) : void
CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
Dispose ( ) : void
HasCustomParameter ( object key ) : bool
Init ( IKernel kernel ) : void
IsBeingResolvedInContext ( CreationContext context ) : bool
ParentHandlerWithChildResolver ( IHandler parentHandler, ISubDependencyResolver childResolver ) : System

Initializes a new instance of the ParentHandlerWithChildResolver class.

Release ( object instance ) : bool
RemoveCustomDependencyValue ( object key ) : void
Resolve ( CreationContext context ) : object
Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object
TryResolve ( CreationContext context ) : object

Protected Methods

Method Description
Dispose ( bool disposing ) : void
RaiseHandlerStateChanged ( object s, EventArgs e ) : void

Method Details

AddCustomDependencyValue() public method

public AddCustomDependencyValue ( object key, object value ) : void
key object
value object
return void

CanResolve() public method

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HasCustomParameter() public method

public HasCustomParameter ( object key ) : bool
key object
return bool

Init() public method

public Init ( IKernel kernel ) : void
kernel IKernel
return void

IsBeingResolvedInContext() public method

public IsBeingResolvedInContext ( CreationContext context ) : bool
context Castle.MicroKernel.Context.CreationContext
return bool

ParentHandlerWithChildResolver() public method

Initializes a new instance of the ParentHandlerWithChildResolver class.
public ParentHandlerWithChildResolver ( IHandler parentHandler, ISubDependencyResolver childResolver ) : System
parentHandler IHandler The parent handler.
childResolver ISubDependencyResolver The child resolver.
return System

RaiseHandlerStateChanged() protected method

protected RaiseHandlerStateChanged ( object s, EventArgs e ) : void
s object
e System.EventArgs
return void

Release() public method

public Release ( object instance ) : bool
instance object
return bool

RemoveCustomDependencyValue() public method

public RemoveCustomDependencyValue ( object key ) : void
key object
return void

Resolve() public method

public Resolve ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
return object

Resolve() public method

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

TryResolve() public method

public TryResolve ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
return object