Im using nuget package "Microsoft.Azure.Storage.Queue" Version="11.1.7" to create Azure storage queue client as below,
AsyncLazy<CloudQueue> qClient = new AsyncLazy<CloudQueue>( async () =>
{
var myStorageAccount = CloudStorageAccount.Parse("ConnectionString");
var myQueue = myStorageAccount .CreateCloudQueueClient()
.GetQueueReference("QueueName");
await myQueue.CreateIfNotExistsAsync();
return myQueue;
});
Would like to incorporate retry mechanism to overcome any transient fault while posting message to the queue via above 'qClient' instance.
How to incorporate retry mechanism in the above way of creating Lazy queue connection?