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

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