1 interface inheriting from IServiceProviderIsService
Microsoft.Extensions.DependencyInjection.Abstractions (1)
IServiceProviderIsKeyedService.cs (1)
12public interface IServiceProviderIsKeyedService : IServiceProviderIsService
5 implementations of IServiceProviderIsService
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
443private class EmptyServiceProvider : IServiceScope, IServiceProvider, IServiceScopeFactory, IServiceProviderIsService
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
443private class EmptyServiceProvider : IServiceScope, IServiceProvider, IServiceScopeFactory, IServiceProviderIsService
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1602private class ServiceProviderIsService : IServiceProviderIsService
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1023internal class ServiceProviderIsService : IServiceProviderIsService
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
14internal sealed class CallSiteFactory : IServiceProviderIsService, IServiceProviderIsKeyedService
49 references to IServiceProviderIsService
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (2)
432var serviceProviderIsService = _builtApplication.Services.GetService<IServiceProviderIsService>();
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (2)
283ServiceProviderIsService = serviceProvider.GetService<IServiceProviderIsService>(), 910if (factoryContext.ServiceProviderIsService is IServiceProviderIsService serviceProviderIsService)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
467serviceType == typeof(IServiceProviderIsService);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
467serviceType == typeof(IServiceProviderIsService);
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingBuilderExtensions.cs (4)
48var serviceProviderIsService = app.ApplicationServices.GetService<IServiceProviderIsService>(); 60var serviceProviderIsService = app.ApplicationServices.GetService<IServiceProviderIsService>();
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (2)
26private readonly IServiceProviderIsService? _serviceProviderIsService; 36IServiceProviderIsService? serviceProviderIsService = null)
Microsoft.AspNetCore.Mvc.Core (4)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (2)
49var serviceProviderIsService = serviceProvider.GetService<IServiceProviderIsService>();
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
29private readonly IServiceProviderIsService? _serviceProviderIsService; 48IServiceProviderIsService serviceProviderIsService)
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (6)
616var serviceProvider = Mock.Of<IServiceProviderIsService>(s => s.IsService(typeof(IApplicationModelProvider)) == true); 634var serviceProvider = Mock.Of<IServiceProviderIsService>(s => s.IsService(typeof(IApplicationModelProvider)) == true); 901IServiceProviderIsService serviceProviderIsService = null) 904serviceProviderIsService = serviceProviderIsService ?? Mock.Of<IServiceProviderIsService>(s => s.IsService(It.IsAny<Type>()) == false);
Microsoft.AspNetCore.OpenApi (5)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (2)
107var serviceProviderIsService = applicationServices.GetService<IServiceProviderIsService>();
Services\OpenApiGenerator.cs (3)
34private readonly IServiceProviderIsService? _serviceProviderIsService; 38/// and an <see cref="IServiceProviderIsService" /> instance. 44IServiceProviderIsService? serviceProviderIsService)
Microsoft.AspNetCore.OpenApi.Tests (9)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
209.AddSingleton<IServiceProviderIsService>(serviceProviderIsService)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (7)
22.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 45.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 68.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 96.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 125.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 157.AddSingleton<IServiceProviderIsService>(serviceProviderIsService) 187.AddSingleton<IServiceProviderIsService>(serviceProviderIsService)
Services\OpenApiDocumentProviderTests.cs (1)
64.AddSingleton<IServiceProviderIsService>(serviceProviderIsService)
Microsoft.AspNetCore.RateLimiting (2)
RateLimiterApplicationBuilderExtensions.cs (2)
48var serviceProviderIsService = app.ApplicationServices.GetService<IServiceProviderIsService>();
Microsoft.AspNetCore.SignalR.Core (4)
HubOptions.cs (1)
75/// When <see langword="false"/>, <see cref="IServiceProviderIsService"/> determines if a Hub method parameter will be injected from the DI container.
Internal\DefaultHubDispatcher.cs (2)
774IServiceProviderIsService? serviceProviderIsService = null; 777serviceProviderIsService = scope.ServiceProvider.GetService<IServiceProviderIsService>();
Internal\HubMethodDescriptor.cs (1)
33public HubMethodDescriptor(ObjectMethodExecutor methodExecutor, IServiceProviderIsService? serviceProviderIsService, IEnumerable<IAuthorizeData> policies)
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteFactory.cs (1)
692serviceType == typeof(IServiceProviderIsService) ||
ServiceProvider.cs (2)
65CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceProviderIsService)), new ConstantCallSite(typeof(IServiceProviderIsService), CallSiteFactory));
Microsoft.Extensions.DependencyInjection.Abstractions (4)
ActivatorUtilities.cs (4)
86IServiceProviderIsService? serviceProviderIsService = provider.GetService<IServiceProviderIsService>(); 759public bool IsService(IServiceProviderIsService serviceProviderIsService, int parameterIndex) 818public int Match(object[] givenParameters, IServiceProviderIsService serviceProviderIsService)