AllComponentsDiagnostic
using Castle.MicroKernel;
namespace Castle.Windsor.Diagnostics
{
public class AllComponentsDiagnostic : IAllComponentsDiagnostic, IDiagnostic<IHandler[]>
{
private readonly IKernel kernel;
public AllComponentsDiagnostic(IKernel kernel)
{
this.kernel = kernel;
}
public IHandler[] Inspect()
{
return kernel.GetAssignableHandlers(typeof(object));
}
}
}