Class ChannelPool
Assembly: Volo.Abp.RabbitMQ.dll
Syntax
public class ChannelPool : IChannelPool, IAsyncDisposable, ISingletonDependency
Constructors
ChannelPool(IConnectionPool)
Declaration
public ChannelPool(IConnectionPool connectionPool)
Parameters
Fields
Semaphore
Declaration
protected SemaphoreSlim Semaphore
Field Value
Properties
Channels
Declaration
protected ConcurrentDictionary<string, ChannelPool.ChannelPoolItem> Channels { get; }
Property Value
ConnectionPool
Declaration
protected IConnectionPool ConnectionPool { get; }
Property Value
IsDisposed
Declaration
protected bool IsDisposed { get; }
Property Value
Logger
Declaration
public ILogger<ChannelPool> Logger { get; set; }
Property Value
TotalDisposeWaitDuration
Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
Methods
AcquireAsync(string?, string?)
Declaration
public virtual Task<IChannelAccessor> AcquireAsync(string? channelName = null, string? connectionName = null)
Parameters
| Type |
Name |
Description |
| string |
channelName |
|
| string |
connectionName |
|
Returns
CheckDisposed()
Declaration
protected virtual void CheckDisposed()
CreateChannelAsync(string, string?)
Declaration
protected virtual Task<IChannel> CreateChannelAsync(string channelName, string? connectionName)
Parameters
| Type |
Name |
Description |
| string |
channelName |
|
| string |
connectionName |
|
Returns
| Type |
Description |
| Task<IChannel> |
|
DisposeAsync()
Declaration
public ValueTask DisposeAsync()
Returns
Implements
Extension Methods