C# Класс JB.Tfs.Common.WorkItemStoreConnectionPool

A pool of WorkItemStore connections
Наследование: IWorkItemStoreConnectionPool
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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