Esempio n. 1
0
        private UpdateManager(UpdateManagerParameters parameters, UpdateMode mode) : this(parameters.CheckForUpdatesFunction, parameters.RunEvery)
        {
            if (mode == UpdateMode.MissingNo)
            {
                //throw new AutoUpdateException("不支持次选择模式.");
            }

            this.mode = mode;
        }
Esempio n. 2
0
        /// <summary>
        ///  初始更新管理器
        /// </summary>
        /// <param name="parameters"></param>
        /// <param name="mode"></param>
        public static void Initialize(UpdateManagerParameters parameters, UpdateMode mode)
        {
            if (instance != null)
            {
                //throw new AutoUpdateException("更新管理器已经初始化.");
            }

            instance = new UpdateManager(parameters, mode);
        }