Ejemplo n.º 1
0
        private async Task SetupUpdateCheckAsync()
        {
            updateChecker = new UpdateChecker("mibbio", "satisfactoryoverlay");
            updateChecker.OnUpdateAvailable += HandleUpdateAvailable;

            var latestUpdate = await updateChecker.CheckForUpdateAsync();

            if (latestUpdate != null)
            {
                OnUpdateAvailable?.Invoke(this, latestUpdate);
            }

            updateChecker.CheckWithInterval(TimeSpan.FromMinutes(15));
        }