예제 #1
0
        static void Main()
        {
            IUpdater updater = UpdaterFactory.Create("http://appupdater.com:84", "releases.txt");

            Console.WriteLine(@"Version is " + updater.CurrentRelease);

            ICheckForUpdateResult checkForUpdateResult = updater.CheckForUpdate();

            if (checkForUpdateResult.IsUpdateAvailable)
            {
                updater.Update();
            }

            Console.Read();
        }