Beispiel #1
0
        /// <summary>
        /// Shuts <see cref="ImagePipelineFactory"/> down.
        /// </summary>

        public static void ShutDown()
        {
            if (_instance != null)
            {
                _instance.GetBitmapMemoryCache().RemoveAll(new Predicate <ICacheKey>(_ => true));
                _instance.GetEncodedMemoryCache().RemoveAll(new Predicate <ICacheKey>(_ => true));
                _instance = null;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Initializes <see cref="ImagePipelineFactory"/> with
 /// the specified config.
 /// </summary>
 /// <param name="imagePipelineConfig">
 /// The imagepipeline configuration.
 /// </param>
 public static void Initialize(ImagePipelineConfig imagePipelineConfig)
 {
     _instance = new ImagePipelineFactory(imagePipelineConfig);
 }