Esempio n. 1
0
        public TableSyncSettings(ChangeDetectionModes changeDetectionMode,
                                 int pollIntervalInMilliseconds,
                                 int qualityCheckIntervalInMilliseconds,
                                 int qualityCheckRecordBatchSize)
        {
            Ensure.That(() => pollIntervalInMilliseconds).IsGt(0);
            Ensure.That(() => qualityCheckIntervalInMilliseconds).IsGt(0);
            Ensure.That(() => qualityCheckRecordBatchSize).IsGt(0);

            ChangeDetectionMode                = changeDetectionMode;
            PollIntervalInMilliseconds         = pollIntervalInMilliseconds;
            QualityCheckIntervalInMilliseconds = qualityCheckIntervalInMilliseconds;
            QualityCheckRecordBatchSize        = qualityCheckRecordBatchSize;
        }
Esempio n. 2
0
        //**************************************************************
        // Constructor()
        // - If you use this contructor, no need to call initialize
        //**************************************************************
        public AppUpdater(string updateUrl,
                          ChangeDetectionModes changeDetectionMode,
                          bool showDefaultUI,
                          bool autoFileLoad,
                          bool validateAssemblies)
        {
            //Load the Poller & Updater
            Poller     = new ServerPoller(this);
            Downloader = new AppDownloader(this);

            UpdateUrl                     = updateUrl;
            ChangeDetectionMode           = changeDetectionMode;
            ShowDefaultUI                 = showDefaultUI;
            AutoFileLoad                  = autoFileLoad;
            Downloader.ValidateAssemblies = validateAssemblies;

            Initialize();
        }
Esempio n. 3
0
        //**************************************************************
        // Constructor()
        // - If you use this contructor, no need to call initialize
        //**************************************************************
        public AppUpdater(string updateUrl,
            ChangeDetectionModes changeDetectionMode,
            bool showDefaultUI,
            bool autoFileLoad,
            bool validateAssemblies)
        {
            //Load the Poller & Updater
            Poller = new ServerPoller(this);
            Downloader = new AppDownloader(this);

            UpdateUrl = updateUrl;
            ChangeDetectionMode = changeDetectionMode;
            ShowDefaultUI = showDefaultUI;
            AutoFileLoad = autoFileLoad;
            Downloader.ValidateAssemblies = validateAssemblies;

            Initialize();
        }