public QueueWait ( MainLoopJob task ) : object | ||
task | MainLoopJob | |
Результат | object |
internal void MoveFile(TorrentManager manager, TorrentFile file, StorageFolder path) { IoLoop.QueueWait(delegate { try { Writer.Move(file, path, false); file.TargetFolder = path; } catch (Exception ex) { SetError(manager, Reason.WriteFailure, ex); } }); }
public void Dispose() { if (Disposed) { return; } Disposed = true; MainLoop.QueueWait(delegate { this.DhtEngine.Dispose(); this.DiskManager.Dispose(); this._listenManager.Dispose(); this._localPeerListener.Stop(); this._localPeerManager.Dispose(); }); }