1 instantiation of ThirdPartyContainer
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
157
public ThirdPartyContainer CreateBuilder(IServiceCollection services) => new
ThirdPartyContainer
{ Services = services };
6 references to ThirdPartyContainer
Microsoft.AspNetCore.TestHost.Tests (6)
TestServerTests.cs (6)
125
.ConfigureServices(s => s.AddSingleton<IServiceProviderFactory<
ThirdPartyContainer
>, ThirdPartyContainerServiceProviderFactory>())
128
.ConfigureTestContainer<
ThirdPartyContainer
>(container => container.Services.AddSingleton(new TestService { Message = "OverridesConfigureContainer" }));
142
public void ConfigureContainer(
ThirdPartyContainer
container) =>
155
public class ThirdPartyContainerServiceProviderFactory : IServiceProviderFactory<
ThirdPartyContainer
>
157
public
ThirdPartyContainer
CreateBuilder(IServiceCollection services) => new ThirdPartyContainer { Services = services };
159
public IServiceProvider CreateServiceProvider(
ThirdPartyContainer
containerBuilder) => containerBuilder.Services.BuildServiceProvider();