13 references to ServiceIdentifier
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (7)
219
var catchAllIdentifier = new
ServiceIdentifier
(KeyedService.AnyKey, serviceIdentifier.ServiceType);
242
var catchAllIdentifier = new
ServiceIdentifier
(KeyedService.AnyKey, genericIdentifier.ServiceType);
274
var cacheKey = new
ServiceIdentifier
(serviceIdentifier.ServiceKey, itemType);
593
var parameterSvcId = new
ServiceIdentifier
(keyed.Key, parameterType);
652
public bool IsService(Type serviceType) => IsService(new
ServiceIdentifier
(null, serviceType));
654
public bool IsKeyedService(Type serviceType, object? key) => IsService(new
ServiceIdentifier
(key, serviceType));
676
if (serviceIdentifier.ServiceKey != null && _descriptorLookup.ContainsKey(new
ServiceIdentifier
(KeyedService.AnyKey, serviceType)))
ServiceLookup\ServiceCacheKey.cs (1)
31
ServiceIdentifier = new
ServiceIdentifier
(key, type);
ServiceLookup\ServiceIdentifier.cs (3)
27
=> new
ServiceIdentifier
(serviceDescriptor.ServiceKey, serviceDescriptor.ServiceType);
29
public static ServiceIdentifier FromServiceType(Type type) => new
ServiceIdentifier
(null, type);
63
public ServiceIdentifier GetGenericTypeDefinition() => new
ServiceIdentifier
(ServiceKey, ServiceType.GetGenericTypeDefinition());
ServiceProvider.cs (2)
115
=> GetService(new
ServiceIdentifier
(serviceKey, serviceType), serviceProviderEngineScope);
230
_serviceAccessors[new
ServiceIdentifier
(callSite.Key, callSite.ServiceType)] = new ServiceAccessor