<PackageReference Include="Castle.Windsor" Version="3.2.0" />

IHandler

public interface IHandler : ISubDependencyResolver
Contract for the IHandler, which manages an component state and coordinates its creation and destruction (dispatching to activators, lifestyle managers)

Gets the model of the component being managed by this handler.

Gets the state of the handler

void Init(IKernelInternal kernel)

Initializes the handler with a reference to the kernel.

Tests whether the handler is already being resolved in given context.

bool Release(Burden burden)

Implementors should dispose the component instance

object Resolve(CreationContext context)

Implementors should return a valid instance for the component the handler is responsible. It should throw an exception in the case the component can't be created for some reason

bool Supports(Type service)

Returns true if this handler supports service

bool SupportsAssignable(Type service)

object TryResolve(CreationContext context)

Implementors should return a valid instance for the component the handler is responsible. It should return null in the case the component can't be created for some reason. No exception should be thrown.