Interface IMessageSender

E-Document Core, Microsoft.eServices.EDocument.Integration.Interfaces

Source AL, 27 lines

src/Apps/W1/EDocument/App/src/Integration/Interfaces/IMessageSender.Interface.allines 13 to 27 of 27, Copyright (c) Microsoft Corporation. MIT

interface IMessageSender{    /// <summary>    /// Sends the payload in the message context.    /// </summary>    /// <param name="EDocument">The parent E-Document.</param>    /// <param name="EDocumentService">The service used to send the message.</param>    /// <param name="MessageContext">The message payload, transport state, and result. The implementation must set the result to Sent or Pending Response after successful transmission.</param>    /// <remarks>    /// The implementation is responsible for obtaining any privacy consent required by the external service before transmitting data.    /// Implementations must use MessageContext.GetMessageEntryNo() as an idempotency key because a message can be retried after an ambiguous transport failure.    /// Set the context status to Pending Response when the external service accepted the message but requires asynchronous response polling.    /// </remarks>    procedure SendMessage(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; MessageContext: Codeunit "E-Doc. Message Context");}

All 27 lines

Public procedures 1 in 29

SendMessage(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; MessageContext: Codeunit "E-Doc. Message Context")new in 29

Implemented by 2

codeunit 6534 "E-Doc. Msg. Transport Default"E-Document Corenew in 29
enum 6151 "Service Integration"E-Document Corenew in 26