public MetaFile(ArchiveOptions options = null) { if (options != null) { this.Name = options.Name; this.GroupName = options.GroupName; this.Expires = options.Expires; } }
public BeginArchive(string name, Action <MemoryStream, ArchiveOptions> complete) { if (complete == null) { throw new ArgumentNullException("complete"); } this._complete = complete; this.Options = new ArchiveOptions(name); this._stream = new MemoryStream(); this._archive = new ZipArchive(this._stream, ZipArchiveMode.Create, true); }
public BeginArchive(string name, Action <MemoryStream, ArchiveOptions> complete) { if (complete == null) { throw new ArgumentNullException(nameof(complete)); } _complete = complete; Options = new ArchiveOptions(name); _stream = new MemoryStream(); _archive = new ZipArchive(_stream, ZipArchiveMode.Create, leaveOpen: true); }