internal static CloudBlobContainer GetContainerReference(CloudStorageAccount storageAccount, string jobId) { if (storageAccount == null) { throw new ArgumentNullException(nameof(storageAccount)); } Validate.IsNotNullOrEmpty(jobId, nameof(jobId)); var jobOutputContainerName = ContainerNameUtils.GetSafeContainerName(jobId); return(storageAccount.CreateCloudBlobClient().GetContainerReference(jobOutputContainerName)); }
internal static CloudBlobContainer GetContainerReference(CloudStorageAccount storageAccount, string jobId) { if (storageAccount == null) { throw new ArgumentNullException(nameof(storageAccount)); } if (jobId == null) { throw new ArgumentNullException(nameof(jobId)); } if (jobId.Length == 0) { throw new ArgumentException("jobId must not be empty", nameof(jobId)); } var jobOutputContainerName = ContainerNameUtils.GetSafeContainerName(jobId); return(storageAccount.CreateCloudBlobClient().GetContainerReference(jobOutputContainerName)); }