Пример #1
0
 private BlobClient CreateBlobClient(string blobFileName)
 {
     return(_storageServiceClientFactory
            .Create()
            .GetBlobContainerClient(_storageConfig.AzureBlobStorageContainerName)
            .GetBlobClient(blobFileName));
 }
Пример #2
0
 // This is a bit weird, since we do not own ressources, nor do we check any other resources.
 // It is done to make testing easier.
 private static void EnsureTestBlobStorage(IStorageServiceClientFactory factory, string containerName)
 {
     factory
     .Create()
     .GetBlobContainerClient(containerName)
     .CreateIfNotExists();
 }
 public BlobServiceClient Create()
 {
     return(_coreFactory.Create());
 }