Skip to content

Change arguments in IFunctionInvocationFilter? #9631

Closed Answered by dmytrostruk
jorisdg asked this question in Q&A
Discussion options

You must be logged in to vote

@jorisdg Thanks for your question!

Yes, it's possible to change arguments before making the next(context) call, here is an example:

// Example: override kernel arguments
context.Arguments["input"] = "new input";
// This call is required to proceed with next filters in pipeline and actual function.
// Without this call next filters and function won't be invoked.
await next(context);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jorisdg
Comment options

Answer selected by jorisdg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants