This step is rather simple, in it, we will initialize the IExtensionConfigProvider
implementation we did in Step 4 and add it to the consumer's Function App project whenever they reference our Extension.
The IWebJobsBuilder
static method simply registers your extension by calling AddExtension
and passing your IExtensionConfigProvider
implementation, and it also defines a Singleton instance of your Collector Factory, so whenever your IExtensionConfigProvider
is created, it will receive this Factory to create the connector or services instances.
The IWebJobsStartup
implementation is what will automatically initialize it as part of the Functions Runtime initialization.
- Create a static extension method that will:
- Register your
IExtensionConfigProvider
implementation withAddExtension
. - Register your Collector Factory with
AddSingleton
.
- Register your
- Create an
IWebJobsStartup
implementation that will call your extension method as part ofConfigure(IWebJobsBuilder builder)
.