public ServiceResolver(IServiceContainer serviceContainer) { _serviceTable = new ServiceTable(serviceContainer.Configuration); _serviceTable.Populate(serviceContainer); _resolvedScopedServcies = new ConcurrentDictionary <ServiceDefinition, object>(); _resolvedSingletonServcies = new ConcurrentDictionary <ServiceDefinition, object>(); _serviceCallSiteResolver = new ServiceCallSiteResolver(_serviceTable); }
public ServiceResolver(IServiceContainer serviceContainer) { _serviceTable = new ServiceTable(serviceContainer.Configuration); _serviceTable.Populate(serviceContainer); _resolvedScopedServices = new ConcurrentDictionary <ServiceDefinition, object>(); _resolvedSingletonServices = new ConcurrentDictionary <ServiceDefinition, object>(); _serviceCallSiteResolver = new ServiceCallSiteResolver(_serviceTable); ServiceResolveCallbacks = this.ResolveMany <IServiceResolveCallback>().ToArray(); }