5 implementations of IsService
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
464public bool IsService(Type serviceType) =>
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
464public bool IsService(Type serviceType) =>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1604public bool IsService(Type serviceType) => serviceType == typeof(IInferredServiceInterface);
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1055public bool IsService(Type serviceType) => serviceType == typeof(IInferredServiceInterface);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
652public bool IsService(Type serviceType) => IsService(new ServiceIdentifier(null, serviceType));
16 references to IsService
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (2)
433if (serviceProviderIsService?.IsService(typeof(IAuthenticationSchemeProvider)) is true) 445if (serviceProviderIsService?.IsService(typeof(IAuthorizationHandlerProvider)) is true)
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
912if (serviceProviderIsService.IsService(parameter.ParameterType))
Microsoft.AspNetCore.HttpLogging (4)
HttpLoggingBuilderExtensions.cs (4)
49if (serviceProviderIsService != null && (!serviceProviderIsService.IsService(typeof(ObjectPool<HttpLoggingInterceptorContext>)) || 50!serviceProviderIsService.IsService(typeof(TimeProvider)))) 61if (serviceProviderIsService != null && (!serviceProviderIsService.IsService(typeof(W3CLoggerProcessor)) || 62!serviceProviderIsService.IsService(typeof(W3CLogger))))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
284_serviceProviderIsService?.IsService(parameterType) == true)
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
150return _serviceProviderIsService.IsService(type);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (3)
616var serviceProvider = Mock.Of<IServiceProviderIsService>(s => s.IsService(typeof(IApplicationModelProvider)) == true); 634var serviceProvider = Mock.Of<IServiceProviderIsService>(s => s.IsService(typeof(IApplicationModelProvider)) == true); 904serviceProviderIsService = serviceProviderIsService ?? Mock.Of<IServiceProviderIsService>(s => s.IsService(It.IsAny<Type>()) == false);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
436_serviceProviderIsService?.IsService(parameter.ParameterType) == true)
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterApplicationBuilderExtensions.cs (1)
49if (serviceProviderIsService != null && !serviceProviderIsService.IsService(typeof(RateLimitingMetrics)))
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubMethodDescriptor.cs (1)
131else if (serviceProviderIsService?.IsService(GetServiceType(p.ParameterType)) == true)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
776return serviceProviderIsService.IsService(parameterInfo.ParameterType);