Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does calling CloudBlobContainer.GetBlockBlobReference do any network communication?

I have a class with a readonly CloudBlobContainer, and functions to do operations on CloudBlockBlobs 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?

like image 402
David S. Avatar asked Feb 26 '15 08:02

David S.


1 Answers

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.

like image 70
Gaurav Mantri Avatar answered Nov 11 '22 07:11

Gaurav Mantri