コード例 #1
0
 public MetaFile(ArchiveOptions options = null)
 {
     if (options != null)
     {
         this.Name      = options.Name;
         this.GroupName = options.GroupName;
         this.Expires   = options.Expires;
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }