Exemple #1
0
        /// <summary>
        /// encoded cache multiplex -> encoded cache -> (disk cache) ->
        /// (webp transcode).
        /// </summary>
        /// <param name="inputProducer">
        /// Producer providing the input to the transcode.
        /// </param>
        /// <returns>
        /// Encoded cache multiplex to webp transcode sequence.
        /// </returns>
        private IProducer <EncodedImage> NewEncodedCacheMultiplexToTranscodeSequence(
            IProducer <EncodedImage> inputProducer)
        {
            // TODO: check webp transcode support
            //inputProducer = _producerFactory.NewWebpTranscodeProducer(inputProducer);

            inputProducer = _producerFactory.NewDiskCacheProducer(inputProducer);
            EncodedMemoryCacheProducer encodedMemoryCacheProducer =
                _producerFactory.NewEncodedMemoryCacheProducer(inputProducer);

            return(_producerFactory.NewEncodedCacheKeyMultiplexProducer(encodedMemoryCacheProducer));
        }