// Try to get a site-specific service, and if that does not // work, ask the host public Object GetService(Type type) { Object service = GetServiceFromSite(type); if (service == null) { service = _host.GetService(type); } if (service != null && service is IComponent) { ((IComponent)service).Site = this; } return(service); }
public Object GetService(Type type) { return(_host.GetService(type)); }