9 references to AnyKey
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (6)
219var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.ServiceType); 242var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.ServiceType); 289!KeyedService.AnyKey.Equals(cacheKey.ServiceKey) && 676if (serviceIdentifier.ServiceKey != null && _descriptorLookup.ContainsKey(new ServiceIdentifier(KeyedService.AnyKey, serviceType))) 707|| key1.Equals(KeyedService.AnyKey) 708|| key2.Equals(KeyedService.AnyKey);
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (2)
683/// the key <see cref="KeyedService.AnyKey"/> is used, so any named <see cref="HttpClient"/> instance will be resolvable as a keyed service (unless explicitly opted-out 725/// it will only affect the previous "global" <see cref="KeyedService.AnyKey"/> registration, and won't affect the clients registered for a specific name
DependencyInjection\HttpClientKeyedLifetime.cs (1)
35public HttpClientKeyedLifetime(ServiceLifetime lifetime) : this(KeyedService.AnyKey, lifetime) { }