CallbackMessageReceiver

Wraps a message callback into IMessageReceiver

Implements: IMessageReceiver

Description

The CallbackMessageReceiver class allows you to wrap message callbacks into IMessageReceiver.

Constructors

Creates an instance of the CallbackMessageReceiver.

public constructor(callback: (envelope: MessageEnvelope, queue: IMessageQueue) => Promise<void>)

Instance methods

receiveMessage

Receives an incoming message from the queue.
See also MessageEnvelope, IMessageQueue

public receiveMessage(envelope: MessageEnvelope, queue: IMessageQueue): Promise<void>