Пример #1
0
        void SetLastUpdateCheckInfo(UpdateInfoFileContent updateInfoFileContent)
        {
            LastUpdateCheckInfo info = null;

            if (updateInfoFileContent.LastCheckTimestamp.HasValue)
            {
                info = new LastUpdateCheckInfo()
                {
                    When         = updateInfoFileContent.LastCheckTimestamp.Value,
                    ErrorMessage = updateInfoFileContent.LastCheckError
                }
            }
            ;
            lock (sync)
            {
                lastUpdateResult = info;
            }
            FireChangedEvent();
        }

        void SetState(AutoUpdateState state)
        {
            lock (sync)
            {
                if (this.state == state)
                {
                    return;
                }
                this.state = state;
            }
            trace.Info("autoupdater state -> {0}", state);
            FireChangedEvent();
        }
Пример #2
0
        void SetLastUpdateCheckInfo(UpdateInfoFileContent updateInfoFileContent)
        {
            LastUpdateCheckInfo info = null;

            if (updateInfoFileContent.LastCheckTimestamp.HasValue)
            {
                info = new LastUpdateCheckInfo(updateInfoFileContent.LastCheckTimestamp.Value, updateInfoFileContent.LastCheckError);
            }
            lock (sync)
            {
                lastUpdateResult = info;
            }
            FireChangedEvent();
        }