SteGriff.AzureStorageTools 1.0.1

Package Description

Install-Package SteGriff.AzureStorageTools -Version 1.0.1
dotnet add package SteGriff.AzureStorageTools --version 1.0.1
<PackageReference Include="SteGriff.AzureStorageTools" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SteGriff.AzureStorageTools --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AzureStorageTools

A small (slightly opinionated) NuGet package to help with some of the dumb stuff when it comes to working with Azure storage. It depends on WindowsAzure.Storage. If you're installing into a Function App project, you may need to manually add Newtonsoft.Json to your project, because the version referenced by WindowsAzure.Storage differs from that held by Microsoft.NET.Sdk.Functions.

Install-Package SteGriff.AzureStorageTools

Remember to add using SteGriff.AzureStorageTools to the top of your code files where you use it.

Contents

AzureStorageProvider

Construct an instance of this class using a ConnectionString, and it will provide you with lazy-loaded CloudStorageAccount. It's used by all the other classes here as a connection container. For usage, see the other entries below.

AzureTableProvider

An easier way to Get and Drop Azure Tables. It hides the CloudTableClient class and the table.CreateIfNotExistsAsync(); step, so you receive a guaranteed-to-exist table without thinking too much :)

Usage:

var storageProvider = new AzureStorageProvider("ConnectionString...");
var tableProvider = new AzureTableProvider(storageProvider);
CloudTable myTable = await tableProvider.GetTableAsync("people");
//Do stuff with the CloudTable...

//You can also drop it
await tableProvider.DropTableAsync("people");

AzureBlobProvider

An easier way to Get Block Blobs. Maybe later it will do other stuff too. It hides the CloudBlobClient and CloubBlobContainer classes, and the container.CreateIfNotExistsAsync() step.

Usage:

var storageProvider = new AzureStorageProvider("ConnectionString...");
var blobProvider = new AzureBlobProvider(storageProvider);
ICloudBlob myBlob = blobProvider.GetBlockBlob("container","filename.txt");
//Do stuff with the CloudBlob...

AzureStorageTools

A small (slightly opinionated) NuGet package to help with some of the dumb stuff when it comes to working with Azure storage. It depends on WindowsAzure.Storage. If you're installing into a Function App project, you may need to manually add Newtonsoft.Json to your project, because the version referenced by WindowsAzure.Storage differs from that held by Microsoft.NET.Sdk.Functions.

Install-Package SteGriff.AzureStorageTools

Remember to add using SteGriff.AzureStorageTools to the top of your code files where you use it.

Contents

AzureStorageProvider

Construct an instance of this class using a ConnectionString, and it will provide you with lazy-loaded CloudStorageAccount. It's used by all the other classes here as a connection container. For usage, see the other entries below.

AzureTableProvider

An easier way to Get and Drop Azure Tables. It hides the CloudTableClient class and the table.CreateIfNotExistsAsync(); step, so you receive a guaranteed-to-exist table without thinking too much :)

Usage:

var storageProvider = new AzureStorageProvider("ConnectionString...");
var tableProvider = new AzureTableProvider(storageProvider);
CloudTable myTable = await tableProvider.GetTableAsync("people");
//Do stuff with the CloudTable...

//You can also drop it
await tableProvider.DropTableAsync("people");

AzureBlobProvider

An easier way to Get Block Blobs. Maybe later it will do other stuff too. It hides the CloudBlobClient and CloubBlobContainer classes, and the container.CreateIfNotExistsAsync() step.

Usage:

var storageProvider = new AzureStorageProvider("ConnectionString...");
var blobProvider = new AzureBlobProvider(storageProvider);
ICloudBlob myBlob = blobProvider.GetBlockBlob("container","filename.txt");
//Do stuff with the CloudBlob...

Release Notes

First release

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 313 3/15/2018