Prior to Isolated Azure Functions, one could create an Output binding queue like so:
[Queue(...)] CloudQueue outputQueue
Then, we could add a new message with the ability to add a Visibility Delay like so:
var cloudQueueMessage = new CloudQueueMessage("some message");
var timespan = new TimeSpan(0, 10, 0);
outputQueue.AddMessage(cloudQueueMessage, initialVisibilityDelay: timespan);
Now that we've migrated these Azure Function to the Isolated mode, how does one add a Visibility Delay to the message?
Here's an example from Microsoft's website
How can we add a Visibility Delay to the message using the Isolated mode
Thank you
The following Microsoft documentation, explains why I can't achieve what I was able to do prior to Isolated mode. Isolated mode does not take advantage of those rich binding classes.
What I ended up doing was adding my own QueueClient and injecting it in my [Function]
With all this in place, I can now achieve my initial goal and also prepare myself for any new features that might need to leverage specific stuff on the QueueClient that the bindings simply don't offer at the time of writing.
Thanks