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