AzureFunctionContextHelper

Contains methods used to get correlationIds, commands and bodies from the Azure Function context.

Description

The AzureFunctionContextHelper class contains methods used to get correlationIds, commands and bodies from the Azure Function context.

Instance methods

get_correlation_id

Returns a correlationId from the Azure Function context.

staticmethod get_correlation_id(context: HttpRequest): str:

  • context: HttpRequest - Azure Function context.
  • returns: str - returned correlationId from context.

get_command

Returns a command from the Azure Function context.

staticmethod get_command(context: HttpRequest): str

  • context: HttpRequest - Azure Function context.
  • returns: str - returned command from context.

get_parameters

Returns a body from the Azure Function context http request.

staticmethod get_parameters(context: HttpRequest): Parameters