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; }
//************************************************************** // 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(); }