I have added retry policy to connect blob
BlobClientOptions blobOptions = new BlobClientOptions()
{
Retry =
{
Delay = TimeSpan.FromSeconds(5),
MaxRetries = 5,
Mode = RetryMode.Exponential,
MaxDelay = TimeSpan.FromSeconds(5),
NetworkTimeout = TimeSpan.FromSeconds(5)
}
};
BlobServiceClient blobServiceClient = new BlobServiceClient(blobConnectionString,blobOptions);
But how can I log that how may retry counts happened while connecting blob.Since in instance of BlobServiceClient, I am not getting any options to check the Retry count.
I am trying to log the count of retries made during connection to the azure blob and how to reproduce scenarios where I can log multiple counts.