17.75. Class ConnectionRabbit
Namespace: ArmoniK.Core.Adapters.RabbitMQ
Assembly: ArmoniK.Core.Adapters.RabbitMQ.dll
[UsedImplicitly]
public class ConnectionRabbit : IConnectionRabbit, IInitializable, IHealthCheckProvider, IDisposable
17.75.1. Inheritance
17.75.2. Implements
IConnectionRabbit, IInitializable, IHealthCheckProvider, IDisposable
17.75.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
17.75.4. Constructors
17.75.4.1. ConnectionRabbit(Amqp, ILogger<ConnectionRabbit>)
public ConnectionRabbit(Amqp options, ILogger<ConnectionRabbit> logger)
17.75.4.1.1. Parameters
options Amqp
logger ILogger<ConnectionRabbit>
17.75.5. Methods
17.75.5.1. Check(HealthCheckTag)
Checks the status of a class for the given health check type.
public Task<HealthCheckResult> Check(HealthCheckTag tag)
17.75.5.1.1. Parameters
tag HealthCheckTag
Health check for which the class has to answer.
17.75.5.1.2. Returns
The result of the check containing the status of the class for the health check type.
17.75.5.2. Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
17.75.5.3. GetConnectionAsync(CancellationToken)
public Task<IModel> GetConnectionAsync(CancellationToken cancellationToken = default)
17.75.5.3.1. Parameters
cancellationToken CancellationToken
17.75.5.3.2. Returns
Task<IModel>
17.75.5.4. Init(CancellationToken)
Executes an initialization process for the class
public Task Init(CancellationToken cancellationToken = default)
17.75.5.4.1. Parameters
cancellationToken CancellationToken
Token used to cancel the execution of the method
17.75.5.4.2. Returns
Task representing the asynchronous execution of the method