Rystem.Content.Infrastructure.Storage.File 9.0.32

dotnet add package Rystem.Content.Infrastructure.Storage.File --version 9.0.32
                    
NuGet\Install-Package Rystem.Content.Infrastructure.Storage.File -Version 9.0.32
                    
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.File" Version="9.0.32" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.Content.Infrastructure.Storage.File" Version="9.0.32" />
                    
Directory.Packages.props
<PackageReference Include="Rystem.Content.Infrastructure.Storage.File" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rystem.Content.Infrastructure.Storage.File --version 9.0.32
                    
#r "nuget: Rystem.Content.Infrastructure.Storage.File, 9.0.32"
                    
#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.
#addin nuget:?package=Rystem.Content.Infrastructure.Storage.File&version=9.0.32
                    
Install Rystem.Content.Infrastructure.Storage.File as a Cake Addin
#tool nuget:?package=Rystem.Content.Infrastructure.Storage.File&version=9.0.32
                    
Install Rystem.Content.Infrastructure.Storage.File as a Cake Tool

What is Rystem?

Integration with Azure File Storage and Content Repository

await services
    .AddContentRepository()
    .WithFileStorageIntegrationAsync(x =>
    {
        x.ShareName = "supertest";
        x.Prefix = "site/";
        x.ConnectionString = configuration["ConnectionString:Storage"];
    },
    "filestorage")
    .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("filestorage");
        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.32 79,406 4/15/2025
9.0.31 5,681 4/2/2025
9.0.30 88,744 3/26/2025
9.0.29 8,905 3/18/2025
9.0.28 138 3/17/2025
9.0.27 142 3/16/2025
9.0.26 141 3/13/2025
9.0.25 52,014 3/9/2025
9.0.21 203 3/6/2025
9.0.20 19,492 3/6/2025
9.0.19 201 3/6/2025
9.0.18 201 3/4/2025
9.0.17 91 3/1/2025
9.0.16 93 3/1/2025
9.0.15 75,437 2/22/2025
9.0.14 22,480 2/18/2025
9.0.13 116 2/9/2025
9.0.12 217,560 1/13/2025
9.0.11 23,941 1/9/2025
9.0.10 80 1/9/2025
9.0.9 3,963 1/7/2025
9.0.8 12,447 1/6/2025
9.0.7 101 1/6/2025
9.0.4 92,228 12/23/2024
9.0.3 97 12/22/2024
9.0.2 10,637 12/21/2024
9.0.1 1,137 12/21/2024
9.0.0 172,972 11/16/2024
9.0.0-rc.1 89 10/18/2024
6.2.0 218,968 10/9/2024
6.1.1 117 10/9/2024
6.1.0 47,853 9/29/2024
6.0.24 113 9/11/2024
6.0.23 340,057 7/18/2024
6.0.21 129 6/18/2024
6.0.20 727,695 6/16/2024
6.0.19 30,601 6/14/2024
6.0.18 115 6/14/2024
6.0.17 120 6/14/2024
6.0.16 49,971 6/10/2024
6.0.15 122 6/9/2024
6.0.14 94,265 5/24/2024
6.0.13 121 5/23/2024
6.0.12 112 5/23/2024
6.0.11 123 5/20/2024
6.0.9 133 5/20/2024
6.0.7 131 5/18/2024
6.0.6 118 5/10/2024
6.0.5 126 5/10/2024
6.0.4 549,669 4/3/2024
6.0.3 141 3/25/2024
6.0.2 137 3/11/2024
6.0.0 245 11/21/2023
6.0.0-rc.6 115 10/25/2023
6.0.0-rc.5 86 10/25/2023
6.0.0-rc.4 84 10/23/2023
6.0.0-rc.3 81 10/19/2023
6.0.0-rc.2 77 10/18/2023
6.0.0-rc.1 79 10/16/2023
5.0.20 169 9/25/2023
5.0.19 179 9/10/2023
5.0.18 168 9/6/2023
5.0.17 169 9/6/2023
5.0.16 172 9/5/2023
5.0.15 162 9/5/2023
5.0.14 163 9/5/2023
5.0.13 159 9/1/2023
5.0.12 180 8/31/2023
5.0.11 139 8/30/2023
5.0.10 186 8/29/2023
5.0.9 171 8/24/2023
5.0.8 164 8/24/2023
5.0.7 176 8/23/2023
5.0.6 170 8/21/2023
5.0.5 183 8/21/2023
5.0.4 192 8/16/2023
5.0.3 196 8/2/2023
5.0.2 183 8/2/2023