Exemplo n.º 1
0
 public async Task OnShutdown()
 {
     Working = false;
     if (timerTask != null)
     {
         await timerTask;
     }
     await StateComponent.SaveAllState();
 }
Exemplo n.º 2
0
 public Task SaveAllStates()
 {
     return(StateComponent.SaveAllState());
 }