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 } }
public AnkhSvnPoolWorkingCopyClient(AnkhClientPool pool) { _pool = pool; }
public AnkhSvnPoolRemoteSession(AnkhClientPool pool, bool uiEnabled, int returnCookie) : base(pool) { _uiEnabled = uiEnabled; _returnCookie = returnCookie; }