private async Task <bool> TestBlobAccountConnectionAsync(YDataSourceAzureBlob dataSource) { StorageSharedKeyCredential sharedKeyCredential = new StorageSharedKeyCredential(dataSource.StorageAccountName, dataSource.StorageAccountKey); string dfsUri = $"https://{dataSource.StorageAccountName }.blob.core.windows.net"; var blobServiceClient = new BlobServiceClient(new Uri(dfsUri), sharedKeyCredential); var account = await blobServiceClient.GetAccountInfoAsync(); return(true); }
public DataSourceViewAzureBlobFS() { this.dataSource = new YDataSourceAzureBlobFS(); }