static async Task Main(string[] args) { FileHelper.CreateStructure(); DoWproLadderApi.ApiUrl = "https://dowpro.cf/api"; Logger logger = new Logger(); await MainLogic.CheckPlayback(logger); }
protected override void OnStart(string[] args) { DoWproLadderApi.ApiUrl = ConfigurationManager.AppSettings["ApiUrl"]; FileHelper.CreateStructure(); Logger logger = new Logger(this.eventLog); this.loopThread = new Thread(async() => await MainLogic.CheckPlayback(logger)); this.loopThread.Start(); }