97 references to ImplementationType
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
401{ ImplementationType: { } type } => ServiceDescriptor.KeyedSingleton(typeof(IHost), this, type),
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
25&& sd.ImplementationType == typeof(ResourceLoggerForwarderService)
Microsoft.AspNetCore (1)
BootstrapHostBuilder.cs (1)
111Debug.Assert(descriptor.ImplementationType?.Name == "GenericWebHostService");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentsServiceCollectionExtensionsTest.cs (1)
123{ ImplementationType: { } type } => type,
Microsoft.AspNetCore.Http.Extensions.Tests (6)
ProblemDetailsServiceCollectionExtensionsTest.cs (6)
28Assert.Single(collection, (sd) => sd.ServiceType == typeof(IProblemDetailsService) && sd.ImplementationType == typeof(ProblemDetailsService)); 29Assert.Single(collection, (sd) => sd.ServiceType == typeof(IProblemDetailsWriter) && sd.ImplementationType == typeof(DefaultProblemDetailsWriter)); 30Assert.Single(collection, (sd) => sd.ServiceType == typeof(IConfigureOptions<JsonOptions>) && sd.ImplementationType == typeof(ProblemDetailsJsonOptionsSetup)); 44Assert.Single(collection, (sd) => sd.ServiceType == typeof(IProblemDetailsService) && sd.ImplementationType == typeof(ProblemDetailsService)); 45Assert.Single(collection, (sd) => sd.ServiceType == typeof(IProblemDetailsWriter) && sd.ImplementationType == typeof(DefaultProblemDetailsWriter)); 46Assert.Single(collection, (sd) => sd.ServiceType == typeof(IConfigureOptions<JsonOptions>) && sd.ImplementationType == typeof(ProblemDetailsJsonOptionsSetup));
Microsoft.AspNetCore.Http.Tests (1)
HttpServiceCollectionExtensionsTests.cs (1)
22Assert.Equal(typeof(HttpContextAccessor), descriptor.ImplementationType);
Microsoft.AspNetCore.Mvc.Core.Test (5)
DependencyInjection\MvcBuilderExtensionsTest.cs (3)
99Assert.Equal(typeof(ControllerTypeA), services[0].ImplementationType); 103Assert.Equal(typeof(TypeBController), services[1].ImplementationType); 107Assert.Equal(typeof(ServiceBasedControllerActivator), services[2].ImplementationType);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
103AssertContainsSingle(services, service.ServiceType, service.ImplementationType); 360sd.ImplementationType == implementationType)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
TempDataInCookiesTest.cs (3)
38if (tempDataSerializers.Count == 1 && tempDataSerializers[0].ImplementationType.FullName == "Microsoft.AspNetCore.Mvc.NewtonsoftJson.BsonTempDataSerializer") 46var type = serializer.ImplementationType; 47builder.Append(serializer.ImplementationType.AssemblyQualifiedName);
Microsoft.AspNetCore.Mvc.Localization.Test (11)
MvcLocalizationMvcBuilderExtensionsTest.cs (5)
50Assert.Equal(typeof(ResourceManagerStringLocalizerFactory), service.ImplementationType); 56Assert.Equal(typeof(StringLocalizer<>), service.ImplementationType); 71Assert.Equal(typeof(HtmlLocalizerFactory), service.ImplementationType); 76Assert.Equal(typeof(HtmlLocalizer<>), service.ImplementationType); 81Assert.Equal(typeof(ViewLocalizer), service.ImplementationType);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (5)
50Assert.Equal(typeof(ResourceManagerStringLocalizerFactory), service.ImplementationType); 56Assert.Equal(typeof(StringLocalizer<>), service.ImplementationType); 71Assert.Equal(typeof(HtmlLocalizerFactory), service.ImplementationType); 76Assert.Equal(typeof(HtmlLocalizer<>), service.ImplementationType); 81Assert.Equal(typeof(ViewLocalizer), service.ImplementationType);
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
59sd.ImplementationType == implementationType)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (3)
66f.ImplementationType?.Assembly == typeof(JsonResult).Assembly); 77f.ImplementationType?.Assembly == viewFeaturesAssembly); 91f.ImplementationType?.Assembly == viewFeaturesAssembly);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (3)
45Assert.Same(typeof(NewtonsoftJsonHelper), jsonHelper.ImplementationType); 60Assert.Same(typeof(BsonTempDataSerializer), tempDataSerializer.ImplementationType); 75Assert.Same(typeof(NewtonsoftJsonResultExecutor), jsonResultExecutor.ImplementationType);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (3)
62f.ImplementationType?.Assembly == typeof(IViewCompilerProvider).Assembly && 63f.ImplementationType.FullName == "Microsoft.AspNetCore.Mvc.Razor.Compilation.DefaultViewCompilerProvider"); 75f.ImplementationType == typeof(CompiledPageActionDescriptorProvider));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs (3)
26Assert.Equal(typeof(RuntimeViewCompilerProvider), serviceDescriptor.ImplementationType); 41Assert.Equal(typeof(PageActionDescriptorProvider), serviceDescriptor.ImplementationType); 44Assert.Equal(typeof(PageLoaderMatcherPolicy), serviceDescriptor.ImplementationType);
Microsoft.AspNetCore.Mvc.Razor.Test (8)
DependencyInjection\MvcRazorMvcBuilderExtensionsTest.cs (4)
29Assert.Equal(typeof(ServiceBasedTagHelperActivator), activatorDescriptor.ImplementationType); 55Assert.Equal(typeof(TestTagHelperOne), tagHelperOne.ImplementationType); 59Assert.Equal(typeof(TestTagHelperTwo), tagHelperTwo.ImplementationType); 63Assert.Equal(typeof(ServiceBasedTagHelperActivator), activator.ImplementationType);
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (4)
69Assert.Equal(typeof(ServiceBasedTagHelperActivator), activatorDescriptor.ImplementationType); 95Assert.Equal(typeof(TestTagHelperOne), tagHelperOne.ImplementationType); 99Assert.Equal(typeof(TestTagHelperTwo), tagHelperTwo.ImplementationType); 103Assert.Equal(typeof(ServiceBasedTagHelperActivator), activator.ImplementationType);
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
96f.ImplementationType == typeof(PageActionDescriptorProvider));
Microsoft.AspNetCore.Mvc.Test (10)
MvcServiceCollectionExtensionsTest.cs (10)
240Assert.Contains(services, s => s.ServiceType == typeof(IActionInvokerProvider) && s.ImplementationType == typeof(ControllerActionInvokerProvider)); 246Assert.Contains(services, s => s.ServiceType == typeof(IConfigureOptions<MvcOptions>) && s.ImplementationType == typeof(MvcDataAnnotationsMvcOptionsSetup)); 257Assert.DoesNotContain(services, s => s.ServiceType == typeof(IActionInvokerProvider) && s.ImplementationType == typeof(PageActionInvokerProvider)); 275{ ImplementationType: { } type } => type, 287AssertContainsSingle(services, service.ServiceType, service.ImplementationType); 437Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 626string.Join(Environment.NewLine, serviceDescriptors.Select(sd => sd.ImplementationType))); 637sd.ImplementationType == implementationType) 650if (service.ImplementationType is not null) 652implementations.Add(service.ImplementationType);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (16)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (7)
46Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 75Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 105Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 120Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 146Assert.Equal(typeof(ConventionsViewComponent), collection[0].ImplementationType); 150Assert.Equal(typeof(AttributeViewComponent), collection[1].ImplementationType); 154Assert.Equal(typeof(ServiceBasedViewComponentActivator), collection[2].ImplementationType);
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensionsTest.cs (9)
24Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 39Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 70Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 102Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 118Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 134Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 150Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 166Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType); 182Assert.Equal(typeof(CookieTempDataProvider), descriptor.ImplementationType);
Microsoft.DotNet.Internal.DependencyInjection.Testing (3)
DependencyInjectionValidation.cs (3)
52if (service.ImplementationType == null) 57if (IsExemptType(service.ImplementationType) || IsExemptType(service.ServiceType)) 62if (!IsTypeResolvable(service.ImplementationType, services, allErrors, service.Lifetime))
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheServicesExtensionsTest.cs (1)
26Assert.Equal(typeof(SqlServerCache), serviceDescriptor.ImplementationType);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceDescriptorExtensions.cs (1)
36: serviceDescriptor.ImplementationType;
Microsoft.Extensions.DependencyInjection.Abstractions (8)
ServiceDescriptor.cs (8)
169/// If <see cref="IsKeyedService"/> is <see langword="false"/>, <see cref="ImplementationType"/> should be called instead. 272if (ImplementationType != null) 274return lifetime + $"{nameof(ImplementationType)}: {ImplementationType}"; 290if (ImplementationType != null) 292return ImplementationType; 1038if (ImplementationType != null) 1040debugText += $@", ImplementationType = ""{ImplementationType.FullName}""";
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
DependencyInjection\ServiceCollectionExtensionsTest.cs (6)
31Assert.Equal(typeof(DefaultHealthCheckService), actual.ImplementationType); 39Assert.Equal(typeof(HealthCheckPublisherHostedService), actual.ImplementationType); 56Assert.Collection(services.OrderBy(s => s.ServiceType.FullName).ThenBy(s => s.ImplementationType!.FullName), 61Assert.Equal(typeof(DefaultHealthCheckService), actual.ImplementationType); 69Assert.Equal(typeof(DummyHostedService), actual.ImplementationType); 77Assert.Equal(typeof(HealthCheckPublisherHostedService), actual.ImplementationType);
Microsoft.Extensions.Localization.Tests (1)
LocalizationServiceCollectionExtensionsTest.cs (1)
50sd.ImplementationType == implementationType)