public DataLoaderState(
     IServiceProvider root,
     DataLoaderDescriptorCollection descriptors,
     IEnumerable <StateObjectCollection <string> > objectCollections)
     : base(root, descriptors, _scopes, objectCollections)
 {
 }
示例#2
0
        public DataLoaderStateManager(
            IEnumerable <DataLoaderDescriptor> descriptors,
            int size)
        {
            if (descriptors == null)
            {
                throw new ArgumentNullException(nameof(descriptors));
            }

            _dataLoaderDescriptors =
                new DataLoaderDescriptorCollection(descriptors);
            _cache = new Cache <StateObjectCollection <string> >(
                size < 10 ? 10 : size);
            _globalStateObjects =
                new StateObjectCollection <string>(ExecutionScope.Global);
        }