Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 772 Bytes

File metadata and controls

21 lines (15 loc) · 772 Bytes

SharpGrip FileSystem AzureBlobStorage adapter NuGet

Installation

Reference NuGet package SharpGrip.FileSystem.Adapters.AzureBlobStorage (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureBlobStorage).

Usage

// Azure connection.
var blobServiceClient = new BlobServiceClient("connectionString");
var azureClient = blobServiceClient.GetBlobContainerClient("blobContainerName");

var adapters = new List<IAdapter>
{
    new LocalAdapter("local", "/var/files"),
    new AzureBlobStorageAdapter("azure", "/Files", azureClient)
};

var fileSystem = new FileSystem(adapters);