public ServiceProviderEngineScope(ServiceProviderEngine engine, bool isRoot = false) { Engine = engine; // To reduce lock contention for singletons upon resolve we use a concurrent dictionary. ResolvedServices = isRoot ? new ConcurrentDictionary <ServiceCacheKey, object>() : new Dictionary <ServiceCacheKey, object>(); }
public ServiceProviderEngineScope(ServiceProviderEngine engine) { Engine = engine; }
public ServiceProviderEngineScope(ServiceProviderEngine engine, bool isRoot = false) { Engine = engine; _state = new ScopeState(isRoot); }
public ServiceProviderEngineScope(ServiceProviderEngine engine) { Engine = engine; _state = new ScopeState(); }
public ServiceProviderEngineScope(ServiceProviderEngine engine, bool isRoot = false) { Engine = engine; _state = isRoot ? new ScopePool.State() : engine.ScopePool.Rent(); }