Open ranciaro opened 5 years ago
@ranciaro we're working on a first class way do do that in the startup. Can you just confirm which property in the ExecutionContext
you're interested in using in your Startup class? The initial design is primarily focused on exposing the application root directory to make loading dependencies a bit simpler.
@fabiocav The property that i need is just the InvocationId
@fabiocav, do you know if this first class way was implemented yet? I haven't been able to find any information on it, cheers!
Any update on this for ver. 3 /4? I want to retrieve ExecutionContext from DI and pass it to my class's constructor.
Currently I can retrieve ExecutionContext inside the function method, like this:
public async Task <IActionResult> Run ([HttpTrigger (AuthorizationLevel.Anonymous, "post", Route = null)], ILogger log, ExecutionContext context)
Is there any way I can retrieve ExecutionContext from my function startup?