public IServiceProviderEx LocateProvider() { var container = WindsorContainerAccessorUtil.ObtainContainer(); try { return((IServiceProviderEx)container); } catch (InvalidCastException ex) { throw new MonoRailException("The container from your HttpApplication subclass should implement IServiceProviderEx.", ex); } }
public IServiceProviderEx LocateProvider() { return(WindsorContainerAccessorUtil.ObtainContainer()); }