I have a class with a readonly CloudBlobContainer
, and functions to do operations on CloudBlockBlob
s inside. If I want to do multiple operations on a CloudBlockBlob
, would I avoid unnecessary network activity (and the associated slowdown) if I only get the CloudBlockBlob
reference once and pass it around to the functions? Or can I get the reference many times without worrying?
TL;DR: Is CloudBlobContainer.GetBlockBlobReference
purely a local operation, so that it won't cause network activity if I call it?
That is correct, CloudBlobContainer.GetBlockBlobReference
does not make network call. It simply creates an instance of CloudBlockBlob
. However if you use GetBlobReferenceFromServer
, it does make a network call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With