I have function Apps, and in a helper class that is going to prepare a file and store it for me i want to read the project file
I tried many ways, such as (AppDomain, AppContext, .... etc) and many others, and as it is serverless, the program.cs is at different directory from the function where it is running. what i want is the WebRoot directory.
i found this https://github.com/Azure/azure-functions-host/wiki/Retrieving-information-about-the-currently-running-function and this is giving me the correct path i want, the wwwroot by using FunctionAppDirectory.
the issue is I need to pass the ExecutionContext to the run function, and then i need to pass it to the Helper class, I cannot read it directly from the helper classes. and i have this in multiple places.
How i can get this globally across the application/Classes.
thanks.