Beispiel #1
0
 public SymCacheController(SymCacheRepository repository,
                           IBackgroundTranscodeQueue transcodeQueue,
                           SymCacheTranscoder transcoder,
                           IOptions <SymCacheOptions> options)
 {
     this.repository     = repository;
     this.transcodeQueue = transcodeQueue;
     this.transcoder     = transcoder;
     transcoderVersion   = options.Value.TranscoderVersion;
 }
Beispiel #2
0
        public BackgroundTranscodeService(SymCacheRepository repository, SymCacheTranscoder transcoder)
        {
            Debug.Assert(repository != null);
            Debug.Assert(transcoder != null);

            this.repository = repository;
            this.transcoder = transcoder;

            // Use one background transcode thread for each processor.
            threads = new Thread[Environment.ProcessorCount];
        }