BlobSync.Helpers.AzureHelper.GetBlobSize C# (CSharp) Method

GetBlobSize() static private method

static private GetBlobSize ( string containerName, string blobName ) : long
containerName string
blobName string
return long
        internal static long GetBlobSize(string containerName, string blobName)
        {
            var client = AzureHelper.GetCloudBlobClient();
            var container = client.GetContainerReference(containerName);
            var blob = container.GetBlockBlobReference(blobName);
            blob.FetchAttributes();
            var length = blob.Properties.Length;
            return length;
        }