Following the documentation for Durable Azure Function - Fan out/fan in
In the diagram above, say we have a static variable like
private static string _staticVar = "DEFAULT";
Some of the F2
instances need to set and then use _staticVar
and some need to use its default value. But when we run this setup with await Task.WhenAll(parallelTasks);
, the value being set by one instance of F2
is reflected at the next.
Is there a way to say we want each F2
to be in a new context/request?