public void ProcessModel(IKernel kernel, ComponentModel model) { if (model.ImplementationIsAListener() == false) { return; } var broker = kernel.Resolve<IEventRegister>(); model.Lifecycle.Add(new RegisterWithEventBroker(broker)); model.Lifecycle.Add(new UnregisterWithEventBroker(broker)); }