public virtual T GetService <T>() where T : IService { return((T)GetService(ServiceType.FromRuntimeType(typeof(T)))); }