public object GetService(Type service) { if (service == typeof(ISite) || service == typeof(IContainerAdapterSite)) { return(this); } else if (service == typeof(IHandler)) { return(container.Container.Kernel.GetHandler(effectiveName)); } else { return(container.GetService(service)); } }
public void GetIntrinsicServices() { Assert.IsNotNull(container.GetService(typeof(IContainer))); Assert.IsNotNull(container.GetService(typeof(IServiceContainer))); Assert.IsNotNull(container.GetService(typeof(IWindsorContainer))); Assert.IsNotNull(container.GetService(typeof(IKernel))); }