This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected virtual void InitializeServiceLocator() | |
{ | |
var container = new WindsorContainer(new XmlInterpreter()); | |
container.AddFacility("quartznet", new QuartzFacility()); | |
//Get All Controller Instances in Assembly and Add to IWindsorContainer | |
ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(container)); | |
var controllerTypes = (from t in Assembly.GetAssembly(typeof (BaseController)).GetExportedTypes() | |
where typeof (IController).IsAssignableFrom(t) | |
select t).ToArray(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SharpArch.Web.Mvc.Castle; | |
namespace EasyOptions.Web.Mvc.CastleWindsor | |
{ | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using SharpArch.Domain.PersistenceSupport; | |
using SharpArch.NHibernate; | |
using SharpArch.NHibernate.Contracts.Repositories; |