Class IbmMqProducer

Namespace: redb.Route.IbmMq
Assembly: redb.Route.IbmMq.dll

IBM MQ producer. Sends messages to a queue or topic via MQPUT with support for:
Immediate — direct MQPUT.Transactional — deferred send via .RPC — request/reply with correlation matching.

public sealed class IbmMqProducer : ConnectableProducer, IProducer, IProcessor

Inheritance

Object→ConnectableProducer→IbmMqProducer

Implements

Inherited Members

Properties

ProducerEndpoint

The endpoint this producer sends to.

protected override IEndpoint ProducerEndpoint { get; }

ProducerName

Display name for logging (e.g. "http:https://api.example.com", "kafka:orders").

protected override string ProducerName { get; }

Methods

ConnectAsync(CancellationToken)

Set up connection/resources. Awaited by Start() to completion before IsStarted flips to

protected override Task ConnectAsync(CancellationToken ct)

DisconnectAsync(CancellationToken)

Tear down connection/resources. Called from Stop() after the started flag is cleared.

protected override Task DisconnectAsync(CancellationToken ct)

OnConnectionLost(Exception)

Fails what waits on the lost connection, such as pending request-reply calls. Default: nothing.

protected override void OnConnectionLost(Exception cause)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public override Task Process(IExchange exchange, CancellationToken ct = default)

Constructors