public virtual T Resolve <T>() where T : class { return(containerManager.Resolve <T>()); //return (T)GetServiceProvider().GetRequiredService(typeof(T)); }