示例#1
0
 private async void ActiveWindowRefreshTimerOnTick(object sender, EventArgs eventArgs)
 {
     try
     {
         await Task.Run(() => _clientProvider.GetActiveWindows(
                            VisibleClients.Where(x => x.IsOnline && x.Version > 2).Select(x => x.Id).ToList()));
     }
     catch (InvalidOperationException)
     {
     }
 }