Table of Contents

Method GetOrCreateSendChannelAsync

Namespace
Ratatoskr.RabbitMq
Assembly
Ratatoskr.RabbitMq.dll

GetOrCreateSendChannelAsync(bool, CancellationToken)

Returns a reusable AMQP channel for send operations. The channel is lazily created and automatically recreated if the previous one was closed. Callers must NOT dispose the returned channel.

public Task<IChannel> GetOrCreateSendChannelAsync(bool enablePublisherConfirms, CancellationToken cancellationToken = default)

Parameters

enablePublisherConfirms bool
cancellationToken CancellationToken

Returns

Task<IChannel>