示例#1
0
        // note: we pass in these params (formatter, datacache) so that overriding classes may get access to private vars indirectly (can't get at them otherwise because this is called from the constructor)
        protected virtual List <SerializationFileSystemTree> InitializeTrees(ISerializationFormatter formatter, bool useDataCache)
        {
            var result = new List <SerializationFileSystemTree>();
            var roots  = _rootFactory.CreateTreeRoots();

            foreach (var root in roots)
            {
                result.Add(CreateTree(root, formatter, useDataCache));
            }

            return(result);
        }
示例#2
0
 // note: we pass in these params (formatter, datacache) so that overriding classes may get access to private vars indirectly (can't get at them otherwise because this is called from the constructor)
 protected virtual List <SerializationFileSystemTree> InitializeTrees(ISerializationFormatter formatter, bool useDataCache)
 {
     return(_rootFactory.CreateTreeRoots().Select(tree => CreateTree(tree, formatter, useDataCache)).ToList());
 }