Axinom Mosaic Libraries
    Preparing search index...
    StoreInboxMessage: <T>(
        aggregateId: string,
        messagingSettings: Pick<MessagingSettings, "messageType" | "aggregateType">,
        payload: T,
        client: DatabaseClient,
        optionalData?: OptionalInboxData,
    ) => Promise<void>

    Function to store the transactional inbox message

    Type Declaration

      • <T>(
            aggregateId: string,
            messagingSettings: Pick<MessagingSettings, "messageType" | "aggregateType">,
            payload: T,
            client: DatabaseClient,
            optionalData?: OptionalInboxData,
        ): Promise<void>
      • Type Parameters

        • T

        Parameters

        • aggregateId: string

          The (database) ID of the aggregate type or use the const UNKNOWN_AGGREGATE_ID or MULTIPLE_AGGREGATE_IDS values.

        • messagingSettings: Pick<MessagingSettings, "messageType" | "aggregateType">

          The messaging related settings object

        • payload: T

          The payload of the message

        • client: DatabaseClient

          The database client to use to store the message

        • OptionaloptionalData: OptionalInboxData

          Add additional data to the message that is going to be stored

        Returns Promise<void>