13 references to ServiceIdentifier
Microsoft.Extensions.DependencyInjection (13)
ServiceLookup\CallSiteFactory.cs (7)
219var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.ServiceType); 242var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.ServiceType); 274var cacheKey = new ServiceIdentifier(serviceIdentifier.ServiceKey, itemType); 593var parameterSvcId = new ServiceIdentifier(keyed.Key, parameterType); 652public bool IsService(Type serviceType) => IsService(new ServiceIdentifier(null, serviceType)); 654public bool IsKeyedService(Type serviceType, object? key) => IsService(new ServiceIdentifier(key, serviceType)); 676if (serviceIdentifier.ServiceKey != null && _descriptorLookup.ContainsKey(new ServiceIdentifier(KeyedService.AnyKey, serviceType)))
ServiceLookup\ServiceCacheKey.cs (1)
31ServiceIdentifier = new ServiceIdentifier(key, type);
ServiceLookup\ServiceIdentifier.cs (3)
27=> new ServiceIdentifier(serviceDescriptor.ServiceKey, serviceDescriptor.ServiceType); 29public static ServiceIdentifier FromServiceType(Type type) => new ServiceIdentifier(null, type); 63public 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