using Castle.Core; using Castle.MicroKernel.Facilities; namespace Samples.TodoListModule { public class ModuleFacility : AbstractFacility { protected override void Init() { Kernel.AddComponent("TodoPresenter", typeof(TodoPresenter), LifestyleType.Transient); Kernel.AddComponent("TodoListPresenter", typeof(TodoListPresenter)); Kernel.AddComponent("TodoView", typeof(TodoView), LifestyleType.Transient); } } }