Example #1
0
            protected override void ReturnClient()
            {
                AnkhClientPool pool = (AnkhClientPool)SvnClientPool;

                SvnClientPool = null;

                if (pool == null)
                {
                    Debug.Assert(false, "Returning pool client a second time");
                    return;
                }

                if (base.IsCommandRunning || base.IsDisposed)
                {
                    Debug.Assert(!IsCommandRunning, "Returning pool client while it is running");
                    Debug.Assert(!IsDisposed, "Returning pool client while it is disposed");

                    return; // No return on these errors.. Leave it to the GC to clean it up eventually
                }
                else if (!pool.ReturnClient(this))
                {
                    InnerDispose(); // The pool wants to get rid of us
                }
                else
                {
                    SvnClientPool = pool; // Reinstated
                }
            }
Example #2
0
 public AnkhSvnPoolWorkingCopyClient(AnkhClientPool pool)
 {
     _pool = pool;
 }
Example #3
0
 public AnkhSvnPoolRemoteSession(AnkhClientPool pool, bool uiEnabled, int returnCookie)
     : base(pool)
 {
     _uiEnabled    = uiEnabled;
     _returnCookie = returnCookie;
 }
Example #4
0
 public AnkhSvnPoolRemoteSession(AnkhClientPool pool, bool uiEnabled, int returnCookie)
     : base(pool)
 {
     _uiEnabled = uiEnabled;
     _returnCookie = returnCookie;
 }