Class ConnectionPool
Inheritance
ConnectionPool
Assembly: Volo.Abp.RabbitMQ.dll
Syntax
public class ConnectionPool : IConnectionPool, IAsyncDisposable, ISingletonDependency
Constructors
ConnectionPool(IOptions<AbpRabbitMqOptions>)
Declaration
public ConnectionPool(IOptions<AbpRabbitMqOptions> options)
Parameters
Fields
Semaphore
Declaration
protected SemaphoreSlim Semaphore
Field Value
Properties
Connections
Declaration
protected ConcurrentDictionary<string, IConnection> Connections { get; }
Property Value
Options
Declaration
protected AbpRabbitMqOptions Options { get; }
Property Value
Methods
DisposeAsync()
Declaration
public ValueTask DisposeAsync()
Returns
GetAsync(string?)
Declaration
public virtual Task<IConnection> GetAsync(string? connectionName = null)
Parameters
| Type |
Name |
Description |
| string |
connectionName |
|
Returns
| Type |
Description |
| Task<IConnection> |
|
GetConnectionAsync(string, ConnectionFactory)
Declaration
protected virtual Task<IConnection> GetConnectionAsync(string connectionName, ConnectionFactory connectionFactory)
Parameters
| Type |
Name |
Description |
| string |
connectionName |
|
| ConnectionFactory |
connectionFactory |
|
Returns
| Type |
Description |
| Task<IConnection> |
|
Implements
Extension Methods