using System; using System.ComponentModel; namespace Umbraco.Core.Sync { /// /// Provides options to the . /// public sealed class DatabaseServerRegistrarOptions { /// /// Initializes a new instance of the class with default values. /// public DatabaseServerRegistrarOptions() { StaleServerTimeout = TimeSpan.FromMinutes(2); // 2 minutes RecurringSeconds = 60; // do it every minute } /// /// The amount of seconds to wait between calls to the database on the background thread /// public int RecurringSeconds { get; set; } /// /// The time span to wait before considering a server stale, after it has last been accessed. /// public TimeSpan StaleServerTimeout { get; set; } } }