Codeunit 7804 Azure Functions

System Application, System.Azure.Functions

src/System Application/App/Azure Function/AzureFunctions.Codeunit.al61 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Azure.Functions;using System.Security.Authentication;/// <summary>/// Provides functionality for connecting to Azure functions./// </summary>codeunit 7804 "Azure Functions"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    var        AzureFunctionsImpl: Codeunit "Azure Functions Impl";    /// <summary>    /// Sends a get request to Azure function.    /// </summary>    /// <param name="AzureFunctionAuthentication">Authentication interface.</param>    /// <param name="QueryDict">Dictionary of query parameters for the request.</param>    /// <returns>Instance of Azure function response object.</returns>    [NonDebuggable]    procedure SendGetRequest(AzureFunctionsAuthentication: Interface "Azure Functions Authentication"; QueryDict: Dictionary of [Text, Text]): Codeunit "Azure Functions Response"    begin        exit(AzureFunctionsImpl.SendGetRequest(AzureFunctionsAuthentication, QueryDict));    end;    /// <summary>    /// Sends a post request to Azure function.    /// </summary>    /// <param name="AzureFunctionAuthentication">Authentication interface</param>    /// <param name="Body">Body of the request message.</param>    /// <param name="ContentTypeHeader">Content type of the body to add to the request header.</param>    /// <returns>Instance of Azure function response object.</returns>    [NonDebuggable]    procedure SendPostRequest(AzureFunctionsAuthentication: Interface "Azure Functions Authentication"; Body: Text; ContentTypeHeader: Text): Codeunit "Azure Functions Response"    begin        exit(AzureFunctionsImpl.SendPostRequest(AzureFunctionsAuthentication, Body, ContentTypeHeader));    end;    /// <summary>    /// Sends a request to Azure function.    /// </summary>    /// <param name="AzureFunctionAuthentication">Authentication interface</param>    /// <param name="RequestType">HTTP request method.</param>    /// <param name="QueryDict">Dictionary of query parameters for the request.</param>    /// <param name="Body">Body of the request message.</param>    /// <param name="ContentTypeHeader">Content type of the body to add to the request header.</param>    /// <returns>Instance of Azure function response object.</returns>    [NonDebuggable]    procedure Send(AzureFunctionsAuthentication: Interface "Azure Functions Authentication"; RequestType: Enum "Http Request Type"; QueryDict: Dictionary of [Text, Text]; Body: Text; ContentTypeHeader: Text): Codeunit "Azure Functions Response"    begin        exit(AzureFunctionsImpl.Send(AzureFunctionsAuthentication, RequestType, QueryDict, Body, ContentTypeHeader));    end;}