public FileInfoContract NewFileItem(RootName root, DirectoryId parent,
                                            string name, System.IO.Stream content, IProgress <ProgressValue> progress)
        {
            var contract = _localState.NewFileItem(root, parent, name, content, progress);

            _contentCache[contract.Id] = content.ReadFully();
            return(contract);
        }
 public void SetContent(RootName root, FileId target, System.IO.Stream content, IProgress <ProgressValue> progress)
 {
     _localState.SetContent(root, target, content, progress);
     _contentCache[target] = content.ReadFully();
 }