Exemple #1
0
        //Setup
        public static void Main(string[] args)
        {
            //Injection
            stopwatch.Start();
            EventLogger.LogMessage("Hello World! - Beginning startup");


            //Runs setup if path file is not present
            SetupManager.CheckIfPathsFileExists();
            CsgoDataHandler.GenerateSouvenirCollections();

            //Continously running threads
            Thread updateUserBankingInterest = new Thread(new ThreadStart(UserBankingInterestUpdater.UpdateUserDebtInterest));
            Thread updateUserMarketStocks    = new Thread(new ThreadStart(UserMarketStocksUpdater.UpdateMarketStocks));

            //Start threads
            updateUserBankingInterest.Start();
            updateUserMarketStocks.Start();

            //Setup
            CsgoDataHandler.GetRootWeaponSkin();

            //Main
            new MainProgram().MainAsync().GetAwaiter().GetResult();
        }