public static IHandler[] GetPotentiallyMisconfigured(IWindsorContainer container) { IDiagnosticsHost host = (IDiagnosticsHost)container.Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey); IPotentiallyMisconfiguredComponentsDiagnostic diagnostics = host.GetDiagnostic <IPotentiallyMisconfiguredComponentsDiagnostic>(); return(diagnostics.Inspect()); }
protected override void AfterContainerCreated() { var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost; #if SILVERLIGHT host.AddDiagnostic<IPotentiallyMisconfiguredComponentsDiagnostic>(new PotentiallyMisconfiguredComponentsDiagnostic(Kernel)); #endif diagnostic = host.GetDiagnostic<IPotentiallyMisconfiguredComponentsDiagnostic>(); }
protected override void AfterContainerCreated() { var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost; #if SILVERLIGHT host.AddDiagnostic <IPotentiallyMisconfiguredComponentsDiagnostic>(new PotentiallyMisconfiguredComponentsDiagnostic(Kernel)); #endif diagnostic = host.GetDiagnostic <IPotentiallyMisconfiguredComponentsDiagnostic>(); }
public override void Init(IKernel kernel, IDiagnosticsHost diagnosticsHost) { diagnostic = new PotentiallyMisconfiguredComponentsDiagnostic(kernel); diagnosticsHost.AddDiagnostic(diagnostic); }
protected override void AfterContainerCreated() { var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost; diagnostic = host.GetDiagnostic <IPotentiallyMisconfiguredComponentsDiagnostic>(); }