Example #1
0
        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);
        }
Example #2
0
 public DataSourceViewAzureBlobFS()
 {
     this.dataSource = new YDataSourceAzureBlobFS();
 }