BlobManager 1.0.0

dotnet add package BlobManager --version 1.0.0                
NuGet\Install-Package BlobManager -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlobManager" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlobManager --version 1.0.0                
#r "nuget: BlobManager, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BlobManager as a Cake Addin
#addin nuget:?package=BlobManager&version=1.0.0

// Install BlobManager as a Cake Tool
#tool nuget:?package=BlobManager&version=1.0.0                

Storage Helper

This library is built to work with different blobs and objects in some of the most commonly used storage providers. It supports core methods for creation, retrieval, deletion and enumeration

API Reference

Getting Started with Azure
--------------------Initialize-----------------

var storage = StorageServiceProvider.GetProvider(Provider.AZURE);

Settings.AzureSettings.ConnectionString = storageConnectionString;
Settings.AzureSettings.ContainerName = "privatedocuments";
Settings.AzureSettings.Lifetime = 10; // in seconds

-- Create
await storage.CreateAsync(requests[0], token)

-- Create Multiple blobs
await storage.CreateMultipleAsync(requests, token);

-- Delete Blob by Path
var deleteres = await storage.DeleteAsync("Test0.pdf", token);

-- If Blob Exisits
var exists = await storage.ExistsAsync("Test1.pdf", token);

-- Get Blob as Stream
var blobresponseStream = await storage.GetBlobAsync("Test1.pdf", token);

-- Get List of blobs
var blobresponse = await storage.GetBlobsFromContainerAsync(token);

-- Get Blob in bytes
var bytes = await storage.GetBytesAsync("Test1.pdf", token);

-- Copy Blob
await storage.CopyFileAsync(new("privatedocuments", "Test1.pdf", "privatedocsnew",
"Testing11.pdf"), token); 

-- Get secured uri
var uri = storage.GetUri("Test1.pdf", token);
Create a Blob
  CreateAsync
Parameter Type Description
createBlobRequest CreateBlobRequest Required. C# Record with (Stream Content, string ContentType, string BlobName)
token CancellationToken Required. Cancellation token
Create list of blobs
CreateMultipleAsync
Parameter Type Description
createBlobRequests List<CreateBlobRequest> Required. Set of C# Records with (Stream Content, string ContentType, string BlobName)
token CancellationToken Required. Cancellation token
Delete Blob
DeleteAsync
Parameter Type Description
blobName string Required. Path of the blob
token CancellationToken Required. Cancellation token
Bolb Exists
ExistsAsync
Parameter Type Description
blobName string Required. Path of the blob
token CancellationToken Required. Cancellation token
Get Blob from storage
GetBlobAsync
Parameter Type Description
blobName string Required. Path of the blob
token CancellationToken Required. Cancellation token
Get list of Blobs from storage
GetBlobsFromContainerAsync
Parameter Type Description
token CancellationToken Required. Cancellation token
Get bytes of blob from storage
GetBytesAsync
Parameter Type Description
blobName string Required. Path of the blob
token CancellationToken Required. Cancellation token
Get uri of the blob
GetUri
Parameter Type Description
blobName string Required. Path of the blob
token CancellationToken Required. Cancellation token
Copy blob
CopyFileAsync
Parameter Type Description
copyBlobRequest CopyBlobRequest Required. C# Record with CopyBlobRequest(string Source, string SourceBlobName, string Destination, string DestinationBlobName)
token CancellationToken Required. Cancellation token
Data Transfer Objects
  CreateBlobRequest
Parameter Type Description
Content Stream Required. Content of Blob in form of System.IO.Stream
SourceBlobName Stream Required. Path of blob
ContentType string Required. Content type of blob
BlobName string Required. Path of blob
  BlobResponse
Parameter Type Description
Name string Required. Path of Blob
Content Stream Required. Content of Blob in form of System.IO.Stream
  CopyBlobRequest
Parameter Type Description
Source string Required. Source container
SourceBlobName Stream Required. Path of blob
Destination string Required. Destination container
DestinationBlobName Stream Required. Destination Path of blob

Features

  • Create blobs in storage
  • Delete blobs from storage
  • Get list of blobs
  • Get blob in form of stream or bytes from storage
  • Create Secured uri of the blob with specific lifetime
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 246 3/13/2023