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