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; 372if (serviceIdentifier.ServiceType == descriptor.ServiceType) 420serviceIdentifier.ServiceType.GetGenericTypeDefinition() == descriptor.ServiceType) 434Type[] genericTypeArguments = serviceIdentifier.ServiceType.GenericTypeArguments; 437VerifyOpenGenericAotCompatibility(serviceIdentifier.ServiceType, genericTypeArguments); 481return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor); 491return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, constructor, parameterCallSites); 555return new ConstructorCallSite(lifetime, serviceIdentifier.ServiceType, bestConstructor, parameterCallSites); 658var 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)
180DependencyInjectionEventSource.Log.ServiceResolved(this, serviceIdentifier.ServiceType); 212DependencyInjectionEventSource.Log.CallSiteBuilt(this, serviceIdentifier.ServiceType, callSite);