I want to run code when the Azure Function's hub is starting and to be sure that's executed before any Azure function can be called in that hub. Can I do that?
Given your are using precompiled C# functions, you could put your initialization code into static constructor:
public static class MyFunctionApp
{
static MyFunctionApp()
{
// Runs once when class is first loaded
}
public void Run([SomeTrigger] input)
{
// Runs on each event
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With