14 references to AnyKey
Microsoft.Extensions.DependencyInjection (11)
ServiceLookup\CallSiteFactory.cs (7)
219var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.ServiceType); 242var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.ServiceType); 285var isAnyKeyLookup = serviceIdentifier.ServiceKey == KeyedService.AnyKey; 385if (descriptorKey.Equals(KeyedService.AnyKey)) 391|| lookupKey.Equals(KeyedService.AnyKey); 618if (serviceIdentifier.ServiceKey == KeyedService.AnyKey) 714if (serviceIdentifier.ServiceKey != null && _descriptorLookup.ContainsKey(new ServiceIdentifier(KeyedService.AnyKey, serviceType)))
ServiceProvider.cs (4)
111/// <exception cref="InvalidOperationException">The <see cref="KeyedService.AnyKey"/> value is used for <paramref name="serviceKey"/> 119if (serviceKey == KeyedService.AnyKey) 136/// <exception cref="InvalidOperationException">The service wasn't found or the <see cref="KeyedService.AnyKey"/> value is used 141if (serviceKey == 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) { }