2 writes to ServiceType
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceIdentifier.cs (2)
17ServiceType = serviceType; 23ServiceType = serviceType;
29 references to ServiceType
Microsoft.Extensions.DependencyInjection (29)
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 (11)
219var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.ServiceType); 242var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.ServiceType); 265var serviceType = serviceIdentifier.ServiceType; 406if (serviceIdentifier.ServiceType == descriptor.ServiceType) 453serviceIdentifier.ServiceType.GetGenericTypeDefinition() == descriptor.ServiceType) 467Type[] genericTypeArguments = serviceIdentifier.ServiceType.GenericTypeArguments; 470VerifyOpenGenericAotCompatibility(serviceIdentifier.ServiceType, genericTypeArguments); 514return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor, serviceIdentifier.ServiceKey); 524return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor, parameterCallSites, serviceIdentifier.ServiceKey); 588return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, bestConstructor, parameterCallSites, serviceIdentifier.ServiceKey); 699var serviceType = serviceIdentifier.ServiceType;
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
283argument.Generator.Emit(OpCodes.Ldtoken, id.ServiceType);
ServiceLookup\ServiceIdentifier.cs (10)
35return ServiceType == other.ServiceType; 39return ServiceType == other.ServiceType && ServiceKey.Equals(other.ServiceKey); 53return ServiceType.GetHashCode(); 57return (ServiceType.GetHashCode() * 397) ^ ServiceKey.GetHashCode(); 61public bool IsConstructedGenericType => ServiceType.IsConstructedGenericType; 63public ServiceIdentifier GetGenericTypeDefinition() => new ServiceIdentifier(ServiceKey, ServiceType.GetGenericTypeDefinition()); 69return ServiceType.ToString(); 72return $"({ServiceKey}, {ServiceType})";
ServiceProvider.cs (2)
213DependencyInjectionEventSource.Log.ServiceResolved(this, serviceIdentifier.ServiceType); 245DependencyInjectionEventSource.Log.CallSiteBuilt(this, serviceIdentifier.ServiceType, callSite);