5 overrides of ServiceType
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\ConstantCallSite.cs (1)
24
public override Type
ServiceType
=> _serviceType;
ServiceLookup\ConstructorCallSite.cs (1)
30
public override Type
ServiceType
{ get; }
ServiceLookup\FactoryCallSite.cs (1)
24
public override Type
ServiceType
{ get; }
ServiceLookup\IEnumerableCallSite.cs (1)
27
public override Type
ServiceType
=> typeof(IEnumerable<>).MakeGenericType(ItemType);
ServiceLookup\ServiceProviderCallSite.cs (1)
14
public override Type
ServiceType
{ get; } = typeof(IServiceProvider);
16 references to ServiceType
Microsoft.Extensions.DependencyInjection (16)
CallSiteJsonFormatter.cs (2)
54
childContext.WriteProperty("serviceType", callSite.
ServiceType
);
65
childContext.WriteProperty("ref", callSite.
ServiceType
);
ServiceLookup\CallSiteValidator.cs (7)
23
Type serviceType = callSite.
ServiceType
;
27
SR.Format(SR.DirectScopedResolvedFromRootException, callSite.
ServiceType
,
33
callSite.
ServiceType
,
57
callSite.
ServiceType
,
58
argument.Singleton.
ServiceType
,
99
if (scopedCallSite.
ServiceType
== typeof(IServiceScopeFactory))
105
return scopedCallSite.
ServiceType
;
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
74
DependencyInjectionEventSource.Log.ExpressionTreeGenerated(_rootScope.RootProvider, callSite.
ServiceType
, expression);
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (5)
124
DependencyInjectionEventSource.Log.DynamicMethodBuilt(_rootScope.RootProvider, callSite.
ServiceType
, ilGenerator.ILOffset);
156
if (parameterCallSite.
ServiceType
.IsValueType)
158
argument.Generator.Emit(OpCodes.Unbox_Any, parameterCallSite.
ServiceType
);
233
if (parameterCallSite.
ServiceType
.IsValueType)
235
argument.Generator.Emit(OpCodes.Unbox_Any, parameterCallSite.
ServiceType
);
ServiceProvider.cs (1)
230
_serviceAccessors[new ServiceIdentifier(callSite.Key, callSite.
ServiceType
)] = new ServiceAccessor