コード例 #1
0
        protected override void PerformUpload()
        {
            Compressed = false;
            var copyManager = new BlobCopyManager();

            copyManager.Start(Blob, _sourceBlob);
            copyManager.WaitForCompletion();
        }
コード例 #2
0
        void DuplicateForLoadBalancing()
        {
            var blobCopyManager = new BlobCopyManager();

            for (var i = 0; i < Options.AdditionalBlobsForLoadBalancing; i++)
            {
                var newBlob = Store.Container.GetBlockBlobReference(string.Format("{0}-{1}", FileKey, i + 1));
                IgnoreConflict(() => blobCopyManager.Start(newBlob, Blob));
            }

            blobCopyManager.WaitForCompletion();
        }