Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Add new BlobOptimisticDataStore constructor#13

Open
gplwhite wants to merge 1 commit intotathamoddie:masterfrom
gplwhite:master
Open

Add new BlobOptimisticDataStore constructor#13
gplwhite wants to merge 1 commit intotathamoddie:masterfrom
gplwhite:master

Conversation

@gplwhite
Copy link
Copy Markdown

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.

…d. This allows customisation of the BlobContainerClient, such as specifying a managed identity credential.
@endintiers
Copy link
Copy Markdown

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants