5 instantiations of ResultCache
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteFactory.cs (4)
355
? new
ResultCache
(cacheLocation, callSiteKey)
356
: new
ResultCache
(CallSiteResultCacheLocation.None, callSiteKey);
381
var lifetime = new
ResultCache
(descriptor.Lifetime, serviceIdentifier, slot);
430
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)
354
ResultCache
resultCache = (cacheLocation == CallSiteResultCacheLocation.Scope || cacheLocation == CallSiteResultCacheLocation.Root)
381
var
lifetime = new ResultCache(descriptor.Lifetime, serviceIdentifier, slot);
430
var
lifetime = new ResultCache(descriptor.Lifetime, serviceIdentifier, slot);
459
ResultCache
lifetime,
ServiceLookup\ConstantCallSite.cs (1)
13
public ConstantCallSite(Type serviceType, object? defaultValue) : base(
ResultCache
.None(serviceType))
ServiceLookup\ConstructorCallSite.cs (2)
14
public ConstructorCallSite(
ResultCache
cache, Type serviceType, ConstructorInfo constructorInfo) : this(cache, serviceType, constructorInfo, Array.Empty<ServiceCallSite>())
18
public ConstructorCallSite(
ResultCache
cache, Type serviceType, ConstructorInfo constructorInfo, ServiceCallSite[] parameterCallSites) : base(cache)
ServiceLookup\FactoryCallSite.cs (2)
12
public FactoryCallSite(
ResultCache
cache, Type serviceType, Func<IServiceProvider, object> factory) : base(cache)
18
public FactoryCallSite(
ResultCache
cache, Type serviceType, object serviceKey, Func<IServiceProvider, object, object> factory) : base(cache)
ServiceLookup\IEnumerableCallSite.cs (1)
16
public IEnumerableCallSite(
ResultCache
cache, Type itemType, ServiceCallSite[] serviceCallSites) : base(cache)
ServiceLookup\ResultCache.cs (1)
11
public static
ResultCache
None(Type serviceType)
ServiceLookup\ServiceCallSite.cs (2)
13
protected ServiceCallSite(
ResultCache
cache)
21
public
ResultCache
Cache { get; }
ServiceLookup\ServiceProviderCallSite.cs (1)
10
public ServiceProviderCallSite() : base(
ResultCache
.None(typeof(IServiceProvider)))