コード例 #1
0
ファイル: AnkhClientPool.cs プロジェクト: windygu/AnkhSVN
            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
                }
            }
コード例 #2
0
ファイル: AnkhClientPool.cs プロジェクト: windygu/AnkhSVN
 public AnkhSvnPoolWorkingCopyClient(AnkhClientPool pool)
 {
     _pool = pool;
 }
コード例 #3
0
ファイル: AnkhClientPool.cs プロジェクト: windygu/AnkhSVN
 public AnkhSvnPoolRemoteSession(AnkhClientPool pool, bool uiEnabled, int returnCookie)
     : base(pool)
 {
     _uiEnabled    = uiEnabled;
     _returnCookie = returnCookie;
 }
コード例 #4
0
ファイル: AnkhClientPool.cs プロジェクト: necora/ank_git
 public AnkhSvnPoolRemoteSession(AnkhClientPool pool, bool uiEnabled, int returnCookie)
     : base(pool)
 {
     _uiEnabled = uiEnabled;
     _returnCookie = returnCookie;
 }