azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Execution Context is not dependency Injected

Open pvmraghunandan opened this issue 4 years ago • 11 comments

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.

pvmraghunandan avatar Oct 03 '19 14:10 pvmraghunandan

Flagging feature request.

fabiocav avatar Oct 09 '19 23:10 fabiocav

+1 for this feature to be implemented

Badabum avatar Oct 16 '19 10:10 Badabum

+1 for this feature to be implemented

diamond-miner avatar Nov 06 '19 16:11 diamond-miner

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

tomgron avatar Sep 18 '20 10:09 tomgron

+1 for this feature to be implemented

TiagoCastilhos avatar Nov 24 '20 12:11 TiagoCastilhos

+1 for this feature to be implemented

jmolla31 avatar Feb 04 '21 14:02 jmolla31

Yes. This is very much needed.

redshiftz avatar Feb 10 '22 20:02 redshiftz

+1 for this feature to be implemented

mmalka avatar Oct 10 '22 14:10 mmalka