Beispiel #1
0
        static Bootstrap()
        {
            var timer = new Timer(230d);

            timer.Elapsed += Elapsed;
            timer.Start();

            Loading.OnLoadingComplete += delegate
            {
                ExecuteConstructor(typeof(Creator));

                timer.Stop();
                timer.Elapsed -= Elapsed;
                timer.Dispose();
                Flips.Clear();
                Flips.TrimExcess();
                flipIndex = 0;

                GC.Collect();

                Console.Title = "SparkTech.SDK";
            };

            DataTask = Task.Run(async() =>
            {
                using (var client = new WebClient())
                {
                    return(await client.DownloadStringTaskAsync("https://raw.githubusercontent.com/Wiciaki/EloBuddy/master/SparkTech.SDK/VersionInfo.cs").ConfigureAwait(false));
                }
            });

            ExecuteConstructor(typeof(Log));

            Process(Assembly.GetExecutingAssembly());
        }