ExecutionContext.InvocationId
vs FunctionFilterContext.FunctionInstanceId
The ExecutionContext
in Azure Function has a property InvocationId
. In IFunctionInvocationFilter.OnExecutedAsync(FunctionExecutedContext ...)
the FunctionExecutedContext
has a property FunctionInstanceId
, which is defined in its base class FunctionFilterContext
.
Thanks if anyone can help!
I was confused at first, but these are actually the same thing. They are both showing a unique identifier of function call, so they are the same for the same call, and different between calls.
The docs aren't great in this part, but you can compare Retrieving information about the currently running function
Provides the invocation ID, uniquely identifying the current invocation
with FunctionExceptionContext source code
The instance ID for the function invocation
I actually ran a test and both properties gave me the same Guid
.
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