C# 클래스 JB.Tfs.Common.WorkItemStoreConnectionPool

A pool of WorkItemStore connections
상속: IWorkItemStoreConnectionPool
파일 보기 프로젝트 열기: jbattermann/JB.Tfs.Common 1 사용 예제들

공개 메소드들

메소드 설명
DecreasePoolSize ( int decreaseBy = 1 ) : void

Decreases the size of the pool.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetAvailableWorkItemStoresCount ( ) : int

Gets the available work item stores count.

GetUsedWorkItemStoresCount ( ) : int

Gets the used work item stores count.

IncreasePoolSize ( int increaseBy = 1 ) : void

Increases the size of the pool.

TryGetWorkItemStore ( ) : PooledWorkItemStore

Tries to get and reserve an avalable, pooled T:Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore. Important: Use the using(..) construct or call .Dispose() when done to release the work item store back to the pool.

WorkItemStoreConnectionPool ( TfsTeamProjectCollection tfsTeamProjectCollection, int amountOfPooledConnections = 2 ) : System

Initializes a new instance of the WorkItemStoreConnectionPool class.

비공개 메소드들

메소드 설명
IsDisposing ( ) : bool

Determines whether this instance is disposing.

TryReleaseWorkItemStore ( WorkItemStore workItemStore, int retryAttempts ) : bool

Tries the release.

메소드 상세

DecreasePoolSize() 공개 메소드

Decreases the size of the pool.
public DecreasePoolSize ( int decreaseBy = 1 ) : void
decreaseBy int The amount of stores to decrease the pool by.
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

GetAvailableWorkItemStoresCount() 공개 메소드

Gets the available work item stores count.
public GetAvailableWorkItemStoresCount ( ) : int
리턴 int

GetUsedWorkItemStoresCount() 공개 메소드

Gets the used work item stores count.
public GetUsedWorkItemStoresCount ( ) : int
리턴 int

IncreasePoolSize() 공개 메소드

Increases the size of the pool.
public IncreasePoolSize ( int increaseBy = 1 ) : void
increaseBy int The amount of stores to increase the pool by.
리턴 void

TryGetWorkItemStore() 공개 메소드

Tries to get and reserve an avalable, pooled T:Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore. Important: Use the using(..) construct or call .Dispose() when done to release the work item store back to the pool.
public TryGetWorkItemStore ( ) : PooledWorkItemStore
리턴 PooledWorkItemStore

WorkItemStoreConnectionPool() 공개 메소드

Initializes a new instance of the WorkItemStoreConnectionPool class.
public WorkItemStoreConnectionPool ( TfsTeamProjectCollection tfsTeamProjectCollection, int amountOfPooledConnections = 2 ) : System
tfsTeamProjectCollection TfsTeamProjectCollection The TFS team project collection.
amountOfPooledConnections int The amount of pooled connections.
리턴 System