Class ConnectionPool
Inheritance
object
ConnectionPool
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.RabbitMQ
Assembly: Volo.Abp.RabbitMQ.dll
Syntax
public class ConnectionPool : IConnectionPool, IDisposable, ISingletonDependency
Constructors
ConnectionPool(IOptions<AbpRabbitMqOptions>)
Declaration
public ConnectionPool(IOptions<AbpRabbitMqOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpRabbitMqOptions> | options |
Properties
Connections
Declaration
protected ConcurrentDictionary<string, Lazy<IConnection>> Connections { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, System.Lazy<T><RabbitMQ.Client.IConnection>> |
Options
Declaration
protected AbpRabbitMqOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpRabbitMqOptions |
Methods
Dispose()
Declaration
public void Dispose()
Get(string)
Declaration
public virtual IConnection Get(string connectionName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | connectionName |
Returns
| Type | Description |
|---|---|
| RabbitMQ.Client.IConnection |
Implements
System.IDisposable