コード例 #1
0
            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);
                }
            }
コード例 #2
0
 public IServiceProviderEx LocateProvider()
 {
     return(WindsorContainerAccessorUtil.ObtainContainer());
 }