public AzureBlobFileManager(CloudBlobContainer container) { if (container == null) { throw new ArgumentNullException("container"); } this.container = container; Root = new BlobVirtualDirectory(null, container); }
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)); }