Exemplo n.º 1
0
        internal async Task SetBlobTag(long taskId, IStorageBlobManagement localChannel, BlobBaseClient blob, bool isValidBlob)
        {
            if (!isValidBlob)
            {
                ValidatePipelineCloudBlobTrack2(blob);
            }

            await blob.SetTagsAsync(
                this.BlobTag.Cast <DictionaryEntry>().ToDictionary(d => (string)d.Key, d => (string)d.Value),
                this.BlobRequestConditions, this.CmdletCancellationToken).ConfigureAwait(false);

            OutputStream.WriteObject(taskId, this.BlobTag);
        }