SnowMaker icon indicating copy to clipboard operation
SnowMaker copied to clipboard

Add new BlobOptimisticDataStore constructor

Open gplwhite opened this issue 2 years ago • 1 comments

This allows customisation of the BlobContainerClient, such as specifying a managed identity credential.

var blobServiceUri = new Uri("https://snowmaker.blob.core.windows.net/datastore");
var blobContainer = new BlobContainerClient(blobServiceUri, new DefaultAzureCredential(), new BlobClientOptions() { Retry = { MaxRetries = 5 } });
var dataStore = new BlobOptimisticDataStore(blobContainer);

The existing connectionString based constructor remains as an overload.

gplwhite avatar Feb 16 '23 02:02 gplwhite

Works on my machine (tm) - I actually like the simplicity of just optionally passing the BlobContainer

endintiers avatar Mar 14 '23 04:03 endintiers