Is there somewhere a class to allow roll back with transactionscope on azure blockblob actions ?
I would like make this works:
CloudBlockBlob blockBlob;
private void UploadPicture(Stream iStream)
{
using(var ts = new TransactionScope())
{
blockBlob.UploadFromStream(iStream);
throw new Exception();
ts.Complete();
}
}
When the exception is raise, the uploaded file is not cancelled. If is not possible with transaction scope, how should I proceed ?