4 instantiations of ServiceAccessor
Microsoft.Extensions.DependencyInjection (4)
ServiceProvider.cs (4)
219
return new
ServiceAccessor
{ CallSite = callSite, RealizedService = scope => value };
223
return new
ServiceAccessor
{ CallSite = callSite, RealizedService = realizedService };
225
return 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)
24
private readonly Func<ServiceIdentifier,
ServiceAccessor
> _createServiceAccessor;
31
private readonly ConcurrentDictionary<ServiceIdentifier,
ServiceAccessor
> _serviceAccessors;
58
_serviceAccessors = new ConcurrentDictionary<ServiceIdentifier,
ServiceAccessor
>();
178
ServiceAccessor
serviceAccessor = _serviceAccessors.GetOrAdd(serviceIdentifier, _createServiceAccessor);
207
private
ServiceAccessor
CreateServiceAccessor(ServiceIdentifier serviceIdentifier)