Example #1
0
            private void Run(object arg)
            {
                SvnClient client = (SvnClient)arg;

                try
                {
                    ProgressWorkerArgs awa = new ProgressWorkerArgs(this, client, _sync);
                    _action(null, awa);

                    if (_exception == null && awa.Exception != null)
                    {
                        _exception = awa.Exception;
                    }

                    if (_exception is SvnOperationCanceledException)
                    {
                        _cancelled = true;
                    }
                }
                catch (SvnOperationCanceledException)
                {
                    _cancelled = true;
                }
                catch (Exception ex)
                {
                    _exception = ex;
                }
                finally
                {
                    _closed = true;
                    try
                    {
                        OnDone(this, EventArgs.Empty);
                    }
                    catch (Exception ex)
                    {
                        if (_exception == null)
                        {
                            _exception = ex;
                        }
                    }
                }
            }
Example #2
0
            private void Run(object arg)
            {
                SvnClient client = (SvnClient)arg;
                try
                {
                    ProgressWorkerArgs awa = new ProgressWorkerArgs(_context, client, _sync);
                    _action(null, awa);

                    if (_exception == null && awa.Exception != null)
                        _exception = awa.Exception;

                    if (_exception is SvnOperationCanceledException)
                        _cancelled = true;
                }
                catch (SvnOperationCanceledException)
                {
                    _cancelled = true;
                }
                catch (Exception ex)
                {
                    _exception = ex;
                }
                finally
                {
                    _closed = true;
                    try
                    {
                        OnDone(this, EventArgs.Empty);
                    }
                    catch (Exception ex)
                    {
                        if (_exception == null)
                            _exception = ex;
                    }
                }
            }