Ejemplo n.º 1
0
            public ChunkWriteStreamFlusher(Stream stream, ICompression compression)
            {
                _stream         = stream;
                _compression    = compression;
                _flushStopwatch = SlimStopwatch.Create();

                if (_compression != null)
                {
                    _chunkCompressedBytes = new byte[ChunkSize + LengthSize];
                }
            }
Ejemplo n.º 2
0
 public SentReporter(ILogger logger)
 {
     _logger    = logger;
     _stopwatch = SlimStopwatch.Create();
     _timeSpan  = TimeSpan.Zero;
 }