func_extension_base Module

Classes

FuncExtensionBase

An abstract class defines the life-cycle hooks which to be implemented by customer's extension.

Everytime when a new extension is initialized in customer function scripts, the ExtensionManager._func_exts field records the extension to this specific function name.

Constructor for extension. This needs to be implemented and ensure super().init(file_path) is called.

The initializer serializes the extension to a tree. This speeds up the worker lookup and reduce the overhead on each invocation. _func_exts[<trigger_name>].<hook_name>.(ext_name, ext_impl) (e.g. _func_exts['HttpTrigger'].pre_invocation.ext_impl)