public Task Execute(IJobExecutionContext context) { return(Task.Factory.StartNew(() => { LocalTxtLog.WriteLog("Test"); })); }
protected override void OnStop() { LocalTxtLog.WriteLog("Service Stop!"); }
protected override async void OnStart(string[] args) { LocalTxtLog.WriteLog("Service Start!"); await RunDemo(); }