public void Dispose() { _dialog.EndWaitDialog(out var canceled); if (canceled == 0) { _registration.Done(); } _registration.Dispose(); }
public void Dispose() { _dialog.EndWaitDialog(out var canceled); // Let the global operation object know that we completed with/without user cancelling. If the user // canceled, we won't call 'Done', and so calling 'Dispose' will log that we didn't complete fully. if (canceled == 0) { _registration.Done(); } _registration.Dispose(); }
private void SolutionBuildingContextChanged(object sender, UIContextChangedEventArgs e) { if (_notificationService != null) { if (e.Activated) { if (_operation != null) { _operation.Dispose(); } _operation = _notificationService.Start("Solution Building"); } else if (_operation != null) { _operation.Done(); _operation.Dispose(); _operation = null; } } }