private void CompletionMethod(Manifest manifest, Exception exception, bool canceled, AsyncOperation asyncOp) { if (!canceled) { lock (userStateToLifetime.SyncRoot) { userStateToLifetime.Remove(asyncOp.UserSuppliedState); } } FileCopyCompletedEventArgs e = new FileCopyCompletedEventArgs(exception, canceled, asyncOp.UserSuppliedState); e.Manifest = manifest; asyncOp.PostOperationCompleted(onCompletedDelegate, e); }
private void fileCopyer_FileCopyCompleted(object sender, FileCopyCompletedEventArgs e) { Clear(); try { updateCfgView.Version = e.Manifest.Version; } catch { } if (ActivationCompleted != null) { ActivationCompletedEventArgs evt = new ActivationCompletedEventArgs(e.Error, e.Cancelled, e.UserState); evt.Manifest = e.Manifest; OnActivationCompleted(evt); } }
protected void OnFileCopyCompleted(FileCopyCompletedEventArgs e) { if (FileCopyCompleted != null) { FileCopyCompleted(this, e); } }