Support ConfigureServices returns IServiceProvider

@davidfowl