BlobContainer Constructor

Wraps a BlobContainerClient to facilitate access to Blob storage.

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9017.0
C#
public BlobContainer(
	string blobContainerName,
	bool createIfNotExist = false,
	IConfiguration? configuration = null,
	ISecretProvider? secretProvider = null,
	string? storageSettingName = null
)

Parameters

blobContainerName  String
The blob container name
createIfNotExist  Boolean  (Optional)
If true, the blob container will be created if it does not exist
configuration  IConfiguration  (Optional)
The configuration settings to use
secretProvider  ISecretProvider  (Optional)
The secret provider to use
storageSettingName  String  (Optional)
The setting name to use with the configuration or secretProvider to find the storage key. If not provided, DefaultStorageConnectionStringSettingKey will be used.

Remarks

The default storage setting configuration key is innerDriveAzure:storageConnectionString. To use this class with the default configuration, add this to your appSettings.json file:
C#
{
   "innerDriveAzure": {
      "storageConnectionString": "super secret connection string"
   }
}

See Also