32 references to ImplementationInstance
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
400{ ImplementationInstance: { } instance } => ServiceDescriptor.KeyedSingleton<IHost>(this, (IHost)instance),
Microsoft.AspNetCore (1)
BootstrapHostBuilder.cs (1)
28Context = (HostBuilderContext)descriptor.ImplementationInstance!;
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentsServiceCollectionExtensionsTest.cs (1)
124{ ImplementationInstance: { } instance } => instance.GetType(),
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (2)
1686Assert.NotNull(heDescriptor.ImplementationInstance); 1690Assert.NotNull(wheDescriptor.ImplementationInstance);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
82Assert.Same(customService, service.ImplementationInstance);
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
72var applicationName = ((IWebHostEnvironment?)environment.LastOrDefault()?.ImplementationInstance)
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
95?.ImplementationInstance;
Microsoft.AspNetCore.Mvc.Test (10)
MvcServiceCollectionExtensionsTest.cs (10)
276{ ImplementationInstance: { } instance } => instance.GetType(), 312Assert.NotNull(descriptor.ImplementationInstance); 313var manager = Assert.IsType<ApplicationPartManager>(descriptor.ImplementationInstance); 340Assert.NotNull(descriptor.ImplementationInstance); 341var manager = Assert.IsType<ApplicationPartManager>(descriptor.ImplementationInstance); 366Assert.NotNull(descriptor.ImplementationInstance); 367var manager = Assert.IsType<ApplicationPartManager>(descriptor.ImplementationInstance); 389Assert.Same(manager, descriptor.ImplementationInstance); 654else if (service.ImplementationInstance is not null) 656implementations.Add(service.ImplementationInstance.GetType());
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceDescriptorExtensions.cs (1)
21: serviceDescriptor.ImplementationInstance;
Microsoft.Extensions.DependencyInjection.Abstractions (6)
ServiceDescriptor.cs (6)
200/// If <see cref="IsKeyedService"/> is <see langword="false"/>, <see cref="ImplementationInstance"/> should be called instead. 282return lifetime + $"{nameof(ImplementationInstance)}: {ImplementationInstance}"; 294else if (ImplementationInstance != null) 296return ImplementationInstance.GetType(); 1048debugText += $@", ImplementationInstance = {ImplementationInstance}";
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
DependencyInjection\ServiceCollectionExtensionsTest.cs (5)
32Assert.Null(actual.ImplementationInstance); 40Assert.Null(actual.ImplementationInstance); 62Assert.Null(actual.ImplementationInstance); 70Assert.Null(actual.ImplementationInstance); 78Assert.Null(actual.ImplementationInstance);
Microsoft.Extensions.Http (2)
DependencyInjection\DefaultHttpClientBuilder.cs (1)
14var tracker = (DefaultHttpClientConfigurationTracker?)services.Single(sd => sd.ServiceType == typeof(DefaultHttpClientConfigurationTracker)).ImplementationInstance;
DependencyInjection\HttpClientBuilderExtensions.cs (1)
788var registry = (HttpClientMappingRegistry?)services.Single(sd => sd.ServiceType == typeof(HttpClientMappingRegistry)).ImplementationInstance;