Creating a custom trigger

Before starting to implement your custom trigger, is important to understand what the classes involved in the trigger pipeline are and what their responsibility is in that pipeline:

  • TriggerConfigProvider: This implements the IExtensionConfigProvider interface and it has the responsibility of configuring the entire trigger process in terms of:
    • The attribute that defines the trigger
    • The payload associated with the trigger (for example, the HTTP request for HttpTrigger)
    • The actual binding provider class to use to create the actual binding object
  • TriggerAttribute: This is used to decorate a method parameter to identify the function trigger. It inherits from Attribute and is decorated by BindingAttribute. It has the ...

Get Mastering Azure Serverless Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.