private void AddEventHandler(IKernelEvents kernelEvents) { kernelEvents.ComponentRegistered += Kernel_ComponentRegistered; kernelEvents.ComponentUnregistered += Kernel_ComponentUnregistered; kernelEvents.ComponentCreated += Kernel_ComponentCreated; kernelEvents.ComponentDestroyed += Kernel_ComponentDestroyed; kernelEvents.DependencyResolving += Kernel_DependencyResolving; kernelEvents.ComponentModelCreated += Kernel_ComponentModelCreated; kernelEvents.HandlerRegistered += Kernel_HandlerRegistered; }
public StartableEvents(IKernelEvents kernel) { Kernel = kernel; kernel.ComponentRegistered += (key, handler) => { if (IsStartable(handler)) { StartableComponentRegistered(handler); } }; }
public ThreadInstanceScope(IKernelEvents events) { this.events = events; events.ContainerDisposed += CleanUp; }
public KernelLogger(IKernelEvents kernelEvents) { AddEventHandler(kernelEvents); }