Rystem.Content.Infrastructure.Storage.Blob 9.0.25

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rystem.Content.Infrastructure.Storage.Blob --version 9.0.25                
NuGet\Install-Package Rystem.Content.Infrastructure.Storage.Blob -Version 9.0.25                
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="Rystem.Content.Infrastructure.Storage.Blob" Version="9.0.25" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rystem.Content.Infrastructure.Storage.Blob --version 9.0.25                
#r "nuget: Rystem.Content.Infrastructure.Storage.Blob, 9.0.25"                
#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 Rystem.Content.Infrastructure.Storage.Blob as a Cake Addin
#addin nuget:?package=Rystem.Content.Infrastructure.Storage.Blob&version=9.0.25

// Install Rystem.Content.Infrastructure.Storage.Blob as a Cake Tool
#tool nuget:?package=Rystem.Content.Infrastructure.Storage.Blob&version=9.0.25                

What is Rystem?

Integration with Azure BlobStorage and Content Repository

await services
.AddContentRepository()
.WithBlobStorageIntegrationAsync(x =>
{
    x.ContainerName = "supertest";
    x.Prefix = "site/";
    x.ConnectionString = configuration["ConnectionString:Storage"];
},
"blobstorage")
.NoContext();

How to use in a business class

public class AllStorageTest
{
    private readonly IContentRepositoryFactory _contentRepositoryFactory;
    private readonly Utility _utility;
    public AllStorageTest(IContentRepositoryFactory contentRepositoryFactory, Utility utility)
    {
        _contentRepositoryFactory = contentRepositoryFactory;
        _utility = utility;
    }
    
    public async Task ExecuteAsync()
    {
        var _contentRepository = _contentRepositoryFactory.Create("blobstorage");
        var file = await _utility.GetFileAsync();
        var name = "folder/file.png";
        var contentType = "images/png";
        var metadata = new Dictionary<string, string>()
        {
            { "name", "ale" }
        };
        var tags = new Dictionary<string, string>()
        {
            { "version", "1" }
        };
        var response = await _contentRepository.ExistAsync(name).NoContext();
        if (response)
        {
            await _contentRepository.DeleteAsync(name).NoContext();
            response = await _contentRepository.ExistAsync(name).NoContext();
        }
        Assert.False(response);
        response = await _contentRepository.UploadAsync(name, file.ToArray(), new ContentRepositoryOptions
        {
            HttpHeaders = new ContentRepositoryHttpHeaders
            {
                ContentType = contentType
            },
            Metadata = metadata,
            Tags = tags
        }, true).NoContext();
        Assert.True(response);
        response = await _contentRepository.ExistAsync(name).NoContext();
        Assert.True(response);
        var options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
        Assert.NotNull(options.Uri);
        foreach (var x in metadata)
        {
            Assert.Equal(x.Value, options.Options.Metadata[x.Key]);
        }
        foreach (var x in tags)
        {
            Assert.Equal(x.Value, options.Options.Tags[x.Key]);
        }
        Assert.Equal(contentType, options.Options.HttpHeaders.ContentType);
        metadata.Add("ale2", "single");
        response = await _contentRepository.SetPropertiesAsync(name, new ContentRepositoryOptions
        {
            HttpHeaders = new ContentRepositoryHttpHeaders
            {
                ContentType = contentType
            },
            Metadata = metadata,
            Tags = tags
        }).NoContext();
        Assert.True(response);
        options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
        Assert.Equal("single", options.Options.Metadata["ale2"]);
        response = await _contentRepository.DeleteAsync(name).NoContext();
        Assert.True(response);
        response = await _contentRepository.ExistAsync(name).NoContext();
        Assert.False(response);
    }
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
9.0.26 103 3 days ago
9.0.25 28,777 7 days ago
9.0.21 190 9 days ago
9.0.20 19,455 9 days ago
9.0.19 188 10 days ago
9.0.18 198 12 days ago
9.0.17 110 14 days ago
9.0.16 83 14 days ago
9.0.15 75,391 22 days ago
9.0.14 22,468 25 days ago
9.0.13 101 a month ago
9.0.12 217,632 2 months ago
9.0.11 23,937 2 months ago
9.0.10 56 2 months ago
9.0.9 3,944 2 months ago
9.0.8 12,442 2 months ago
9.0.7 83 2 months ago
9.0.4 92,226 3 months ago
9.0.3 90 3 months ago
9.0.2 10,638 3 months ago
9.0.1 1,131 3 months ago
9.0.0 173,016 4 months ago
9.0.0-rc.1 110 5 months ago
6.2.0 219,053 5 months ago
6.1.1 107 5 months ago
6.1.0 47,910 6 months ago
6.0.24 136 6 months ago
6.0.23 340,038 8 months ago
6.0.21 123 9 months ago
6.0.20 727,618 9 months ago
6.0.19 30,771 9 months ago
6.0.18 114 9 months ago
6.0.17 115 9 months ago
6.0.16 49,988 9 months ago
6.0.15 115 9 months ago
6.0.14 94,479 10 months ago
6.0.13 129 10 months ago
6.0.12 123 10 months ago
6.0.11 135 10 months ago
6.0.9 129 10 months ago
6.0.7 125 10 months ago
6.0.6 117 5/10/2024
6.0.5 123 5/10/2024
6.0.4 549,938 4/3/2024
6.0.3 119 3/25/2024
6.0.2 217 3/11/2024
6.0.0 268 11/21/2023
6.0.0-rc.6 110 10/25/2023
6.0.0-rc.5 84 10/25/2023
6.0.0-rc.4 78 10/23/2023
6.0.0-rc.3 76 10/19/2023
6.0.0-rc.2 81 10/18/2023
6.0.0-rc.1 81 10/16/2023
5.0.20 375 9/25/2023
5.0.19 700 9/10/2023
5.0.18 166 9/6/2023
5.0.17 159 9/6/2023
5.0.16 151 9/5/2023
5.0.15 155 9/5/2023
5.0.14 141 9/5/2023
5.0.13 261 9/1/2023
5.0.12 144 8/31/2023
5.0.11 129 8/30/2023
5.0.10 156 8/29/2023
5.0.9 139 8/24/2023
5.0.8 150 8/24/2023
5.0.7 147 8/23/2023
5.0.6 160 8/21/2023
5.0.5 162 8/21/2023
5.0.4 169 8/16/2023
5.0.3 349 8/2/2023
5.0.2 175 8/2/2023
5.0.1 176 8/1/2023
5.0.0 175 7/31/2023
4.0.6 175 7/20/2023
4.0.4 225 7/10/2023
4.0.3 159 7/10/2023
4.0.1 164 7/7/2023