Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

27 lines (23 loc) · 1.22 KB

BLOBi

Build status

Azure Blob Storage Integration Library

Get it on Nuget

The main package on nuget.org:

PM> Install-Package BLOBi

Usage

Registering dependencies

Registering the dependencies in an ASP.NET Core application, using Microsoft.Extensions.DependencyInjection, is pretty simple:

  • Provide a section in de AppSettings as below example from a storage emulator
 "azureStorageManagement": {
    "accountName": "devstoreaccount1",
    "accountKey": "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",
    "connectionString": "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
  },
  • Call below code inside the Configure method in Startup.cs or from inside an IServiceCollection extension
services.AddBlobICore(_configuration.GetSection("AzureStorageManagement"));