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