private void CreateCore(string name, string author) { _source.CreateStream(ContentFileName, "si/xml"); _source.CreateStream(TextsStorageName, AuthorsFileName, "si/xml"); _source.CreateStream(TextsStorageName, SourcesFileName, "si/xml"); InitializeStorages(); _package = new Package { Name = name }; _package.Info.Authors.Add(author); _authors = new AuthorInfoList(); _sources = new SourceInfoList(); }
public async Task AddFile(string fileName, Stream stream) { await _package.CreateStream(Name, fileName, _mediaType, stream); _files.Add(fileName); }