Azure-functions-host: Execution Context is not dependency Injected

Created on 3 Oct 2019  路  6Comments  路  Source: Azure/azure-functions-host

Repro steps

Currently Invocation Id is part of Execution Context which cannot be Dependency Injected in Functions V2. We want to use that to insert into our downstream blob store to track as Activity Id. Due to this limitation, we had to tweak and do many workarounds. It would be great if IExecutionContext kind of interface is Dependency Injectable by default.

Expected behavior

Dependency Inject Execution Context.

feature

Most helpful comment

+1 for this feature to be implemented

All 6 comments

Flagging feature request.

+1 for this feature to be implemented

+1 for this feature to be implemented

Could be useful for tests when trying to access headers and such that are only accessible through execution context.

+1 for this feature to be implemented

+1 for this feature to be implemented

Was this page helpful?
0 / 5 - 0 ratings