Ejemplo n.º 1
0
        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);
		}
Ejemplo n.º 5
0
 public override void Init(IKernel kernel, IDiagnosticsHost diagnosticsHost)
 {
     diagnostic = new PotentiallyMisconfiguredComponentsDiagnostic(kernel);
     diagnosticsHost.AddDiagnostic(diagnostic);
 }
Ejemplo n.º 6
0
        protected override void AfterContainerCreated()
        {
            var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost;

            diagnostic = host.GetDiagnostic <IPotentiallyMisconfiguredComponentsDiagnostic>();
        }