2 writes to ServiceType
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceIdentifier.cs (2)
17ServiceType = serviceType; 23ServiceType = serviceType;
31 references to ServiceType
Microsoft.Extensions.DependencyInjection (31)
ServiceLookup\CallSiteChain.cs (5)
41messageBuilder.Append(SR.Format(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(serviceIdentifier.ServiceType))); 58if (implementationType == null || serviceIdentifier.ServiceType == implementationType) 60builder.Append(TypeNameHelper.GetTypeDisplayName(serviceIdentifier.ServiceType)); 64builder.Append(TypeNameHelper.GetTypeDisplayName(serviceIdentifier.ServiceType)) 73builder.Append(TypeNameHelper.GetTypeDisplayName(currentlyResolving.ServiceType));
ServiceLookup\CallSiteFactory.cs (14)
219var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.ServiceType); 231if (serviceIdentifier.ServiceType.IsConstructedGenericType) 242var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.ServiceType); 265var serviceType = serviceIdentifier.ServiceType; 325if (ShouldCreateExact(_descriptors[i].ServiceType, cacheKey.ServiceType)) 342if (ShouldCreateOpenGeneric(_descriptors[i].ServiceType, cacheKey.ServiceType)) 456if (ShouldCreateExact(descriptor.ServiceType, serviceIdentifier.ServiceType)) 504if (ShouldCreateOpenGeneric(descriptor.ServiceType, serviceIdentifier.ServiceType)) 537Type[] genericTypeArguments = serviceIdentifier.ServiceType.GenericTypeArguments; 540VerifyOpenGenericAotCompatibility(serviceIdentifier.ServiceType, genericTypeArguments); 583return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor, serviceIdentifier.ServiceKey); 593return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor, parameterCallSites, serviceIdentifier.ServiceKey); 657return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, bestConstructor, parameterCallSites, serviceIdentifier.ServiceKey); 768var serviceType = serviceIdentifier.ServiceType;
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
283argument.Generator.Emit(OpCodes.Ldtoken, id.ServiceType);
ServiceLookup\ServiceIdentifier.cs (9)
35return ServiceType == other.ServiceType; 39return ServiceType == other.ServiceType && ServiceKey.Equals(other.ServiceKey); 53return ServiceType.GetHashCode(); 57return (ServiceType.GetHashCode() * 397) ^ ServiceKey.GetHashCode(); 61public ServiceIdentifier GetGenericTypeDefinition() => new ServiceIdentifier(ServiceKey, ServiceType.GetGenericTypeDefinition()); 67return ServiceType.ToString(); 70return $"({ServiceKey}, {ServiceType})";
ServiceProvider.cs (2)
213DependencyInjectionEventSource.Log.ServiceResolved(this, serviceIdentifier.ServiceType); 245DependencyInjectionEventSource.Log.CallSiteBuilt(this, serviceIdentifier.ServiceType, callSite);