protected override void AfterContainerCreated() { var host = Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey) as IDiagnosticsHost; #if SILVERLIGHT host.AddDiagnostic<IPotentialLifestyleMismatchesDiagnostic>(new PotentialLifestyleMismatchesDiagnostic(Kernel)); #endif diagnostic = host.GetDiagnostic<IPotentialLifestyleMismatchesDiagnostic>(); }
public override void Init(IKernel kernel, IDiagnosticsHost diagnosticsHost) { diagnostic = new PotentialLifestyleMismatchesDiagnostic(kernel); diagnosticsHost.AddDiagnostic(diagnostic); }