2 writes to ServiceType
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceIdentifier.cs (2)
17
ServiceType
= serviceType;
23
ServiceType
= serviceType;
29 references to ServiceType
Microsoft.Extensions.DependencyInjection (29)
ServiceLookup\CallSiteChain.cs (5)
41
messageBuilder.Append(SR.Format(SR.CircularDependencyException, TypeNameHelper.GetTypeDisplayName(serviceIdentifier.
ServiceType
)));
58
if (implementationType == null || serviceIdentifier.
ServiceType
== implementationType)
60
builder.Append(TypeNameHelper.GetTypeDisplayName(serviceIdentifier.
ServiceType
));
64
builder.Append(TypeNameHelper.GetTypeDisplayName(serviceIdentifier.
ServiceType
))
73
builder.Append(TypeNameHelper.GetTypeDisplayName(currentlyResolving.
ServiceType
));
ServiceLookup\CallSiteFactory.cs (11)
219
var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, serviceIdentifier.
ServiceType
);
242
var catchAllIdentifier = new ServiceIdentifier(KeyedService.AnyKey, genericIdentifier.
ServiceType
);
265
var serviceType = serviceIdentifier.
ServiceType
;
372
if (serviceIdentifier.
ServiceType
== descriptor.ServiceType)
420
serviceIdentifier.
ServiceType
.GetGenericTypeDefinition() == descriptor.ServiceType)
434
Type[] genericTypeArguments = serviceIdentifier.
ServiceType
.GenericTypeArguments;
437
VerifyOpenGenericAotCompatibility(serviceIdentifier.
ServiceType
, genericTypeArguments);
481
return new ConstructorCallSite(lifetime, serviceIdentifier.
ServiceType
, constructor);
491
return new ConstructorCallSite(lifetime, serviceIdentifier.
ServiceType
, constructor, parameterCallSites);
555
return new ConstructorCallSite(lifetime, serviceIdentifier.
ServiceType
, bestConstructor, parameterCallSites);
658
var serviceType = serviceIdentifier.
ServiceType
;
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
283
argument.Generator.Emit(OpCodes.Ldtoken, id.
ServiceType
);
ServiceLookup\ServiceIdentifier.cs (10)
35
return
ServiceType
== other.
ServiceType
;
39
return
ServiceType
== other.
ServiceType
&& ServiceKey.Equals(other.ServiceKey);
53
return
ServiceType
.GetHashCode();
57
return (
ServiceType
.GetHashCode() * 397) ^ ServiceKey.GetHashCode();
61
public bool IsConstructedGenericType =>
ServiceType
.IsConstructedGenericType;
63
public ServiceIdentifier GetGenericTypeDefinition() => new ServiceIdentifier(ServiceKey,
ServiceType
.GetGenericTypeDefinition());
69
return
ServiceType
.ToString();
72
return $"({ServiceKey}, {
ServiceType
})";
ServiceProvider.cs (2)
180
DependencyInjectionEventSource.Log.ServiceResolved(this, serviceIdentifier.
ServiceType
);
212
DependencyInjectionEventSource.Log.CallSiteBuilt(this, serviceIdentifier.
ServiceType
, callSite);