Exemplo n.º 1
0
 public void Flush()
 {
     IOLoop.QueueWait(delegate {
         foreach (TorrentManager manager in engine.Torrents)
         {
             writer.Flush(manager.Torrent.Files);
         }
     });
 }
Exemplo n.º 2
0
 public void Flush()
 {
     IOLoop.QueueWait(() =>
     {
         foreach (var manager in _engine.Torrents)
         {
             _writer.Flush(manager.Torrent.Files);
         }
     });
 }