5 instantiations of ResultCache
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteFactory.cs (4)
363
? new
ResultCache
(cacheLocation, callSiteKey)
364
: new
ResultCache
(CallSiteResultCacheLocation.None, callSiteKey);
415
var lifetime = new
ResultCache
(descriptor.Lifetime, serviceIdentifier, slot);
463
var lifetime = new
ResultCache
(descriptor.Lifetime, serviceIdentifier, slot);
ServiceLookup\ResultCache.cs (1)
14
return new
ResultCache
(CallSiteResultCacheLocation.None, cacheKey);
14 references to ResultCache
Microsoft.Extensions.DependencyInjection (14)
ServiceLookup\CallSiteFactory.cs (4)
362
ResultCache
resultCache = (cacheLocation == CallSiteResultCacheLocation.Scope || cacheLocation == CallSiteResultCacheLocation.Root)
415
var
lifetime = new ResultCache(descriptor.Lifetime, serviceIdentifier, slot);
463
var
lifetime = new ResultCache(descriptor.Lifetime, serviceIdentifier, slot);
492
ResultCache
lifetime,
ServiceLookup\ConstantCallSite.cs (1)
13
public ConstantCallSite(Type serviceType, object? defaultValue, object? serviceKey = null) : base(
ResultCache
.None(serviceType), serviceKey)
ServiceLookup\ConstructorCallSite.cs (2)
14
public ConstructorCallSite(
ResultCache
cache, Type serviceType, ConstructorInfo constructorInfo, object? serviceKey) : this(cache, serviceType, constructorInfo, Array.Empty<ServiceCallSite>(), serviceKey)
18
public ConstructorCallSite(
ResultCache
cache, Type serviceType, ConstructorInfo constructorInfo, ServiceCallSite[] parameterCallSites, object? serviceKey) : base(cache, serviceKey)
ServiceLookup\FactoryCallSite.cs (2)
12
public FactoryCallSite(
ResultCache
cache, Type serviceType, Func<IServiceProvider, object> factory) : base(cache, null)
18
public FactoryCallSite(
ResultCache
cache, Type serviceType, object serviceKey, Func<IServiceProvider, object, object> factory) : base(cache, serviceKey)
ServiceLookup\IEnumerableCallSite.cs (1)
16
public IEnumerableCallSite(
ResultCache
cache, Type itemType, ServiceCallSite[] serviceCallSites, object? serviceKey = null) : base(cache, serviceKey)
ServiceLookup\ResultCache.cs (1)
11
public static
ResultCache
None(Type serviceType)
ServiceLookup\ServiceCallSite.cs (2)
13
protected ServiceCallSite(
ResultCache
cache, object? key)
22
public
ResultCache
Cache { get; }
ServiceLookup\ServiceProviderCallSite.cs (1)
10
public ServiceProviderCallSite() : base(
ResultCache
.None(typeof(IServiceProvider)), null)