示例#1
0
        public void Dispose()
        {
            _dialog.EndWaitDialog(out var canceled);

            if (canceled == 0)
            {
                _registration.Done();
            }

            _registration.Dispose();
        }
示例#2
0
        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();
        }
示例#3
0
        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;
                }
            }
        }