4 instantiations of ServiceAccessor
Microsoft.Extensions.DependencyInjection (4)
ServiceProvider.cs (4)
219return new ServiceAccessor { CallSite = callSite, RealizedService = scope => value }; 223return new ServiceAccessor { CallSite = callSite, RealizedService = realizedService }; 225return new ServiceAccessor { CallSite = callSite, RealizedService = _ => null }; 230_serviceAccessors[new ServiceIdentifier(callSite.Key, callSite.ServiceType)] = new ServiceAccessor
5 references to ServiceAccessor
Microsoft.Extensions.DependencyInjection (5)
ServiceProvider.cs (5)
24private readonly Func<ServiceIdentifier, ServiceAccessor> _createServiceAccessor; 31private readonly ConcurrentDictionary<ServiceIdentifier, ServiceAccessor> _serviceAccessors; 58_serviceAccessors = new ConcurrentDictionary<ServiceIdentifier, ServiceAccessor>(); 178ServiceAccessor serviceAccessor = _serviceAccessors.GetOrAdd(serviceIdentifier, _createServiceAccessor); 207private ServiceAccessor CreateServiceAccessor(ServiceIdentifier serviceIdentifier)