Added Generic GetRequiredService extension method for IServiceProvider