protected override void AfterContainerCreated()
		{
			var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost;
#if SILVERLIGHT
			host.AddDiagnostic<IUsingContainerAsServiceLocatorDiagnostic>(new UsingContainerAsServiceLocatorDiagnostic(Kernel));
#endif
			diagnostic = host.GetDiagnostic<IUsingContainerAsServiceLocatorDiagnostic>();
		}
Пример #2
0
        protected override void AfterContainerCreated()
        {
            var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost;

#if SILVERLIGHT
            host.AddDiagnostic <IUsingContainerAsServiceLocatorDiagnostic>(new UsingContainerAsServiceLocatorDiagnostic(Kernel));
#endif
            diagnostic = host.GetDiagnostic <IUsingContainerAsServiceLocatorDiagnostic>();
        }
        protected override void AfterContainerCreated()
        {
            var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost;

            diagnostic = host.GetDiagnostic <IUsingContainerAsServiceLocatorDiagnostic>();
        }
 public override void Init(IKernel kernel, IDiagnosticsHost diagnosticsHost)
 {
     diagnostic = new UsingContainerAsServiceLocatorDiagnostic(kernel);
     diagnosticsHost.AddDiagnostic(diagnostic);
 }
 public override void Init(IKernel kernel, IDiagnosticsHost diagnosticsHost)
 {
     diagnostic = new UsingContainerAsServiceLocatorDiagnostic(kernel);
     diagnosticsHost.AddDiagnostic(diagnostic);
 }