Example #1
0
        public ChunkWriter(ChunkManager chunkManager)
        {
            chunkManager.CheckNotNull("chunkManager");

            _chunkManager    = chunkManager;
            _scheduleService = IocManager.Instance.Resolve <IScheduleService>();
        }
        public ChunkReader(ChunkManager chunkManager, ChunkWriter chunkWriter)
        {
            chunkManager.CheckNotNull("chunkManager");
            chunkWriter.CheckNotNull("chunkWriter");

            _chunkManager = chunkManager;
            _chunkWriter  = chunkWriter;
        }
Example #3
0
        private Chunk(string filename, ChunkManager chunkManager, ChunkManagerConfig chunkConfig, bool isMemoryChunk)
        {
            filename.CheckNotNullOrEmpty("filename");
            chunkManager.CheckNotNull("chunkManager");
            chunkConfig.CheckNotNull("chunkConfig");

            _filename       = filename;
            _chunkManager   = chunkManager;
            _chunkConfig    = chunkConfig;
            _isMemoryChunk  = isMemoryChunk;
            _lastActiveTime = DateTime.Now;
        }