Show / Hide Table of Contents

Class ChannelPool

Inheritance
System.Object
ChannelPool
Implements
IChannelPool
IDisposable
ISingletonDependency
Namespace: Volo.Abp.RabbitMQ
Assembly: Volo.Abp.RabbitMQ.dll
Syntax
public class ChannelPool : object, 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
ConcurrentDictionary<System.String, ChannelPool.ChannelPoolItem>

ConnectionPool

Declaration
protected IConnectionPool ConnectionPool { get; }
Property Value
Type Description
IConnectionPool

IsDisposed

Declaration
protected bool IsDisposed { get; }
Property Value
Type Description
System.Boolean

Logger

Declaration
public ILogger<ChannelPool> Logger { get; set; }
Property Value
Type Description
ILogger<ChannelPool>

TotalDisposeWaitDuration

Declaration
protected TimeSpan TotalDisposeWaitDuration { get; set; }
Property Value
Type Description
TimeSpan

Methods

Acquire(String, String)

Declaration
public virtual IChannelAccessor Acquire(string channelName = null, string connectionName = null)
Parameters
Type Name Description
System.String channelName
System.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
System.String channelName
System.String connectionName
Returns
Type Description
IModel

Dispose()

Declaration
public void Dispose()

Implements

IChannelPool
IDisposable
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft