Class ChannelPool
Inheritance
object
ChannelPool
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 ChannelPool : IChannelPool, IDisposable, ISingletonDependency
Constructors
ChannelPool(IConnectionPool)
Declaration
public ChannelPool(IConnectionPool connectionPool)
Parameters
| Type | Name | Description |
|---|---|---|
| IConnectionPool | connectionPool |
Properties
Channels
Declaration
protected ConcurrentDictionary<string, ChannelPool.ChannelPoolItem> Channels { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, ChannelPool.ChannelPoolItem> |
ConnectionPool
Declaration
protected IConnectionPool ConnectionPool { get; }
Property Value
| Type | Description |
|---|---|
| IConnectionPool |
IsDisposed
Declaration
protected bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Logger
Declaration
public ILogger<ChannelPool> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.Extensions.Logging.ILogger<TCategoryName><ChannelPool> |
TotalDisposeWaitDuration
Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Methods
Acquire(string, string)
Declaration
public virtual IChannelAccessor Acquire(string channelName = null, string connectionName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | channelName | |
| string | connectionName |
Returns
| Type | Description |
|---|---|
| IChannelAccessor |
CheckDisposed()
Declaration
protected void CheckDisposed()
CreateChannel(string, string)
Declaration
protected virtual IModel CreateChannel(string channelName, string connectionName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | channelName | |
| string | connectionName |
Returns
| Type | Description |
|---|---|
| RabbitMQ.Client.IModel |
Dispose()
Declaration
public void Dispose()
Implements
System.IDisposable