public void Inject() { _container = new WindsorContainer().Install(FromAssembly.This()); var controllerFactory = new CastleControllerFactory(_container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); CoreFactories.Install(_container); }
/// <summary> /// Creates an instance of the class /// </summary> public Core() { CoreDomain = new CurrentAppDomain(this); InternalObjectRegister = new CoreManagement(this); InternalObjectActivator = new CoreActivator(this); InternalObjectResolver = new CoreResolver(this); InternalObjectEvents = new CoreEvents(this); InternalFactories = new CoreFactories(this); InternalCache = new CoreCache(this); Console = OnCreateConsole(); Settings = OnCreateSettings(); Invoker = OnCreateInvoker(); OnCreate(); }