public ZipFile(FileStream file) { this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.bufferSize_ = 0x1000; this.updateEntryFactory_ = new ZipEntryFactory(); if (file == null) { throw new ArgumentNullException("file"); } if (!file.CanSeek) { throw new ArgumentException("Stream is not seekable", "file"); } this.baseStream_ = file; this.name_ = file.Name; this.isStreamOwner = true; try { this.ReadEntries(); } catch { this.DisposeInternal(true); throw; } }
public ZipFile(Stream stream) { this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.bufferSize_ = 0x1000; this.updateEntryFactory_ = new ZipEntryFactory(); if (stream == null) { throw new ArgumentNullException("stream"); } if (!stream.CanSeek) { throw new ArgumentException("Stream is not seekable", "stream"); } this.baseStream_ = stream; this.isStreamOwner = true; if (this.baseStream_.Length > 0L) { try { this.ReadEntries(); return; } catch { this.DisposeInternal(true); throw; } } this.entries_ = new ZipEntry[0]; this.isNewArchive_ = true; }
public ZipFile(Stream stream) { _useZip64 = UseZip64.Dynamic; _bufferSize = DefaultBufferSize; _updateEntryFactory = new ZipEntryFactory(); if (stream == null) { throw new ArgumentNullException(nameof(stream)); } if (!stream.CanSeek) { throw new ArgumentException("Stream is not seekable", nameof(stream)); } _baseStream = stream; _isStreamOwner = true; if (_baseStream.Length > 0L) { try { ReadEntries(); return; } catch { DisposeInternal(true); throw; } } _entries = new ZipEntry[0]; _isNewArchive = true; }
public ZipFile(Stream stream) { useZip64_ = UseZip64.Dynamic; bufferSize_ = DefaultBufferSize; updateEntryFactory_ = new ZipEntryFactory(); if (stream == null) { throw new ArgumentNullException("stream"); } if (!stream.CanSeek) { throw new ArgumentException("Stream is not seekable", "stream"); } baseStream_ = stream; isStreamOwner = true; if (baseStream_.Length > 0L) { try { ReadEntries(); return; } catch { DisposeInternal(true); throw; } } entries_ = new ZipEntry[0]; isNewArchive_ = true; }
public ZipFile(FileStream file) { _useZip64 = UseZip64.Dynamic; _bufferSize = DefaultBufferSize; _updateEntryFactory = new ZipEntryFactory(); if (file == null) { throw new ArgumentNullException(nameof(file)); } if (!file.CanSeek) { throw new ArgumentException("Stream is not seekable", nameof(file)); } _baseStream = file; _name = file.Name; _isStreamOwner = true; try { ReadEntries(); } catch { DisposeInternal(true); throw; } }
public ZipFile(FileStream file) { useZip64_ = UseZip64.Dynamic; bufferSize_ = DefaultBufferSize; updateEntryFactory_ = new ZipEntryFactory(); if (file == null) { throw new ArgumentNullException("file"); } if (!file.CanSeek) { throw new ArgumentException("Stream is not seekable", "file"); } baseStream_ = file; name_ = file.Name; isStreamOwner = true; try { ReadEntries(); } catch { DisposeInternal(true); throw; } }
internal ZipFile() { this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.bufferSize_ = 0x1000; this.updateEntryFactory_ = new ZipEntryFactory(); this.entries_ = new ZipEntry[0]; this.isNewArchive_ = true; }
internal ZipFile() { _useZip64 = UseZip64.Dynamic; _bufferSize = DefaultBufferSize; _updateEntryFactory = new ZipEntryFactory(); _entries = new ZipEntry[0]; _isNewArchive = true; }
public TarInputStream(Stream inputStream, int blockSize, int recordSize) { this.inputStream = inputStream; this.buffer = TarBuffer.CreateInputTarBuffer(inputStream, blockSize, recordSize); this.readBuf = null; this.debug = false; this.hasHitEOF = false; this.eFactory = null; }
/// <summary> /// Create from a file /// </summary> /// <param name="ef"></param> /// <param name="original"></param> /// <param name="ztime"></param> public ZipFSEntry(IEntryFactory ef, FileSystemInfo original, ZipTime ztime) { _ze = null; _ztime = ztime; if (original is FileInfo) _ze = ef.MakeFileEntry(original.FullName, true); else { string nobs = Utils.BackslashRemove(original.FullName); _ze = ef.MakeDirectoryEntry(nobs, true); } }
internal ZipFile() { useZip64_ = UseZip64.Dynamic; bufferSize_ = DefaultBufferSize; updateEntryFactory_ = new ZipEntryFactory(); entries_ = new ZipEntry[0]; isNewArchive_ = true; }
internal EmailLogger(string name, IEntryFactory <MailMessage> entryFactory, EmailEntryProcessor entryProcessor, IExternalScopeProvider scopeProvider) : base(name, entryFactory, entryProcessor ?? new EmailEntryProcessor(), scopeProvider) { }
public void SetEntryFactory(IEntryFactory factory) { _entryFactory = factory; }
public ZipFile(string name) { useZip64_ = UseZip64.Dynamic; bufferSize_ = DefaultBufferSize; updateEntryFactory_ = new ZipEntryFactory(); if (name == null) { throw new ArgumentNullException("name"); } name_ = name; baseStream_ = File.Open(name, FileMode.Open, FileAccess.Read, FileShare.Read); isStreamOwner = true; try { ReadEntries(); } catch { DisposeInternal(true); throw; } }
/// <summary> /// Set the entry factory for this instance. /// </summary> /// <param name="factory">The factory for creating new entries</param> public void SetEntryFactory(IEntryFactory factory) { this.eFactory = factory; }
public DiscordFetcher(IDiscordClient client, IEntryFactory <DiscordContact> entryFactory) { _client = client; _entryFactory = entryFactory; }
public FastZip(FastZipEvents events) { _entryFactory = new ZipEntryFactory(); _useZip64 = UseZip64.Dynamic; _events = events; }
public FastZip(FastZipEvents events) { this.entryFactory_ = new ZipEntryFactory(); this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.events_ = events; }
public FastZip(FastZipEvents events) { this.entryFactory_ = new ZipEntryFactory(); this.events_ = events; }
public FastZip() { this.entryFactory_ = new ZipEntryFactory(); }
/// <summary> /// Constructor for creating a <see cref="LoggerProviderBase{TLogger, TLoggerOptions, TEntryProcessor, TEntry}"/> /// </summary> /// <param name="options"><see cref="IOptions{TOptions}"/> to configure the loggers</param> /// <param name="entryFactory"><see cref="IEntryFactory{TEntry}"/> to create entries</param> /// <param name="entryProcessor"><see cref="IEntryProcessor{TEntry}"/> to persist entries</param> protected LoggerProviderBase(IOptionsMonitor <TLoggerOptions> options, IEntryFactory <TEntry> entryFactory, TEntryProcessor entryProcessor) : this(entryFactory, entryProcessor) { _optionsReloadToken = options.OnChange(ReloadLoggerOptions); ReloadLoggerOptions(options.CurrentValue); }
public EmailLoggerProvider(IOptionsMonitor <EmailLoggerOptions> options, IEntryFactory <MailMessage> entryFactory) : base(options, entryFactory, new EmailEntryProcessor()) { CreateOrUpdateClient(); }
public ZipFile(string name) { this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.bufferSize_ = 0x1000; this.updateEntryFactory_ = new ZipEntryFactory(); if (name == null) { throw new ArgumentNullException("name"); } this.name_ = name; this.baseStream_ = File.Open(name, FileMode.Open, FileAccess.Read, FileShare.Read); this.isStreamOwner = true; try { this.ReadEntries(); } catch { this.DisposeInternal(true); throw; } }
public StoreEntryFactory(IEntryFactory baseEntryFactory) { _wrappedEntryFactory = baseEntryFactory; }
public EntityFrameworkCoreLoggerProvider(IServiceProvider serviceProvider, IOptionsMonitor <EntityFrameworkCoreLoggerOptions> options, IEntryFactory <TEntry> entryFactory) : base(options, entryFactory, new EntityFrameworkCoreEntryProcessor <TContext, TEntry>(serviceProvider)) { _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); }
public TwitterFetcher(ITwitterClient client, IEntryFactory <TwitterContact> entryFactory) { _client = client; _entryFactory = entryFactory; }
public FastZip() { _entryFactory = new ZipEntryFactory(); _useZip64 = UseZip64.Dynamic; }
private LoggerProviderBase(IEntryFactory <TEntry> entryFactory, TEntryProcessor entryProcessor) { _entryFactory = entryFactory ?? throw new ArgumentNullException(nameof(entryFactory)); _entryProcessor = entryProcessor ?? throw new ArgumentNullException(nameof(entryProcessor)); }
public ZipFile(string name) { _useZip64 = UseZip64.Dynamic; _bufferSize = DefaultBufferSize; _updateEntryFactory = new ZipEntryFactory(); if (name == null) { throw new ArgumentNullException(nameof(name)); } _name = name; _baseStream = File.Open(name, FileMode.Open, FileAccess.Read, FileShare.Read); _isStreamOwner = true; try { ReadEntries(); } catch { DisposeInternal(true); throw; } }
/// <summary> /// Construct a TarInputStream with user specified block factor /// </summary> /// <param name="inputStream">stream to source data from</param> /// <param name="blockFactor">block factor to apply to archive</param> public TarInputStream(Stream inputStream, int blockFactor) { this.inputStream = inputStream; this.buffer = TarBuffer.CreateInputTarBuffer(inputStream, blockFactor); this.readBuf = null; this.hasHitEOF = false; this.eFactory = null; }
public FastZip() { entryFactory_ = new ZipEntryFactory(); useZip64_ = UseZip64.Dynamic; }
public FastZip(FastZipEvents events) { _entryFactory = new ZipEntryFactory(); _useZip64 = UseZip64.Dynamic; _events = events; }
public FastZip(FastZipEvents events) { entryFactory_ = new ZipEntryFactory(); useZip64_ = UseZip64.Dynamic; events_ = events; }
public FastZip() { _entryFactory = new ZipEntryFactory(); _useZip64 = UseZip64.Dynamic; }
public FastZip(FastZipEvents events) { this.entryFactory_ = new ZipEntryFactory(); this.useZip64_ = ICSharpCode.SharpZipLib.Zip.UseZip64.Dynamic; this.events_ = events; }
public GitHubFetcher(IGitHubClient client, IEntryFactory <GitHubContact> entryFactory) { _client = client; _entryFactory = entryFactory; }
public EntryController(IEntryFactory entryFactory) { this._entryFactory = entryFactory; }
/// <summary> /// Set the entry factory for this instance. /// </summary> /// <param name="factory">The factory for creating new entries</param> public void SetEntryFactory(IEntryFactory factory) { entryFactory = factory; }
public EntrySerializer(IEntryFactory entryFactory) { this._entryFactory = entryFactory; }
public void SetEntryFactory(IEntryFactory factory) { this.entryFactory = factory; }
public EntityFrameworkCoreLoggerProvider(IServiceProvider serviceProvider, IOptionsMonitor <EntityFrameworkCoreLoggerOptions> options, IEntryFactory <Entry> entryFactory) : base(serviceProvider, options, entryFactory) { }