New policy: "update-context-variables" to add multiple context variables at once
We should have a new policy: "update-context-variables" whose policy expression allows us to directly update the IReadOnlyDictionary<string, object> context.Variables, such that we can add multiple variables in a single policy expression.
I have an application that receives a requests with json in the body, validates the shape of the json and its various fields, before passing that json forward to an eventhub service.
My policy XML is overly verbose, because I have to iterate through that json multiple times to in multiple set-variable policies. I would like a single policy that would allow me to iterate through that json once, and set all the context variables I need in the single policy expression