Exemplo n.º 1
0
 public ProcessServiceProvider(IGzipService gzipService, IChunksKeeper chunksKeeper)
 {
     _compressingServices = new Dictionary <ProcessType, Func <IProcessService> >
     {
         { ProcessType.Decompress, () => new DecompressService(gzipService, chunksKeeper) },
         { ProcessType.Compress, () => new CompressService(gzipService, chunksKeeper) }
     };
 }
 public ChunkThreadsHandler(IProcessService processService, IChunksKeeper chunksKeeper)
 {
     _maxThreadInPool = Environment.ProcessorCount;
     _readyTasks      = new ConcurrentQueue <Action>();
     _threads         = new List <Thread>();
     _processService  = processService;
     _chunksKeeper    = chunksKeeper;
 }
 protected BaseProcessService(IGzipService gzipService, IChunksKeeper chunksKeeper)
 {
     _gzipService  = gzipService;
     _chunksKeeper = chunksKeeper;
 }
 public DecompressService(IGzipService gzipService, IChunksKeeper chunksKeeper)
     : base(gzipService, chunksKeeper)
 {
 }