/// <summary>
        /// Initializing JetImageLoader with setted configuration
        /// Initializing will be done only once, so other invokes of this method will do nothing
        /// </summary>
        /// <param name="jetImageLoaderConfig"></param>
        public virtual void Initialize(JetImageLoaderConfig jetImageLoaderConfig)
        {
            if (jetImageLoaderConfig == null)
            {
                throw new ArgumentException("Can not initialize JetImageLoader with empty configuration");
            }
            
            if (Config != null) return;

            Config = jetImageLoaderConfig;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializing JetImageLoader with setted configuration
        /// Initializing will be done only once, so other invokes of this method will do nothing
        /// </summary>
        /// <param name="jetImageLoaderConfig"></param>
        public virtual void Initialize(JetImageLoaderConfig jetImageLoaderConfig)
        {
            if (jetImageLoaderConfig == null)
            {
                throw new ArgumentException("Can not initialize JetImageLoader with empty configuration");
            }

            if (Config != null)
            {
                return;
            }

            Config = jetImageLoaderConfig;
        }