Does calling CloudBlobContainer.GetBlockBlobReference do any network communication?
azure, azure-blob-storage, azure-storage, c#
Solution
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.
Problem
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?