コード例 #1
0
 public AzureBlobFileManager(CloudBlobContainer container)
 {
     if (container == null)
     {
         throw new ArgumentNullException("container");
     }
     this.container = container;
     Root           = new BlobVirtualDirectory(null, container);
 }
コード例 #2
0
        public Task <IDirectory> GetDirectoryAsync(string directoryName, CancellationToken cancellationToken)
        {
            if (string.IsNullOrWhiteSpace(directoryName))
            {
                throw new ArgumentNullException("directoryName");
            }

            IDirectory directory = new BlobVirtualDirectory(directoryName, container);

            return(Task.FromResult(directory));
        }