Rystem.Content.Infrastructure.InMemory
9.0.32
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Rystem.Content.Infrastructure.InMemory --version 9.0.32
NuGet\Install-Package Rystem.Content.Infrastructure.InMemory -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.InMemory" 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.InMemory" Version="9.0.32" />
<PackageReference Include="Rystem.Content.Infrastructure.InMemory" />
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.InMemory --version 9.0.32
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rystem.Content.Infrastructure.InMemory, 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.
#:package Rystem.Content.Infrastructure.InMemory@9.0.32
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rystem.Content.Infrastructure.InMemory&version=9.0.32
#tool nuget:?package=Rystem.Content.Infrastructure.InMemory&version=9.0.32
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is Rystem?
Integration with In Memory and Content Repository
services
.AddContentRepository()
.WithInMemoryIntegration("inmemory");
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("inmemory");
var file = await _utility.GetFileAsync();
var name = "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 | Versions 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Rystem.Content.Abstractions (>= 9.0.32)
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 |
|---|---|---|
| 10.0.1 | 35,103 | 11/12/2025 |
| 9.1.3 | 258 | 9/2/2025 |
| 9.1.2 | 764,450 | 5/29/2025 |
| 9.1.1 | 97,758 | 5/2/2025 |
| 9.0.32 | 186,671 | 4/15/2025 |
| 9.0.31 | 5,746 | 4/2/2025 |
| 9.0.30 | 88,806 | 3/26/2025 |
| 9.0.29 | 8,988 | 3/18/2025 |
| 9.0.28 | 217 | 3/17/2025 |
| 9.0.27 | 212 | 3/16/2025 |
| 9.0.26 | 228 | 3/13/2025 |
| 9.0.25 | 52,070 | 3/9/2025 |
| 9.0.21 | 290 | 3/6/2025 |
| 9.0.20 | 19,599 | 3/6/2025 |
| 9.0.19 | 276 | 3/6/2025 |
| 9.0.18 | 300 | 3/4/2025 |
| 9.0.17 | 180 | 3/1/2025 |
| 9.0.16 | 169 | 3/1/2025 |
| 9.0.15 | 75,489 | 2/22/2025 |
| 9.0.14 | 22,547 | 2/18/2025 |
| 9.0.13 | 179 | 2/9/2025 |
| 9.0.12 | 217,718 | 1/13/2025 |
| 9.0.11 | 24,033 | 1/9/2025 |
| 9.0.10 | 156 | 1/9/2025 |
| 9.0.9 | 4,036 | 1/7/2025 |
| 9.0.8 | 12,518 | 1/6/2025 |
| 9.0.7 | 173 | 1/6/2025 |
| 9.0.4 | 92,306 | 12/23/2024 |
| 9.0.3 | 179 | 12/22/2024 |
| 9.0.2 | 10,722 | 12/21/2024 |
| 9.0.1 | 1,221 | 12/21/2024 |
| 9.0.0 | 173,059 | 11/16/2024 |
| 9.0.0-rc.1 | 118 | 10/18/2024 |
| 6.2.0 | 219,083 | 10/9/2024 |
| 6.1.1 | 189 | 10/9/2024 |
| 6.1.0 | 47,971 | 9/29/2024 |
| 6.0.24 | 222 | 9/11/2024 |
| 6.0.23 | 340,100 | 7/18/2024 |
| 6.0.21 | 194 | 6/18/2024 |
| 6.0.20 | 727,574 | 6/16/2024 |
| 6.0.19 | 30,462 | 6/14/2024 |
| 6.0.18 | 192 | 6/14/2024 |
| 6.0.17 | 205 | 6/14/2024 |
| 6.0.16 | 50,031 | 6/10/2024 |
| 6.0.15 | 196 | 6/9/2024 |
| 6.0.14 | 94,348 | 5/24/2024 |
| 6.0.13 | 214 | 5/23/2024 |
| 6.0.12 | 197 | 5/23/2024 |
| 6.0.11 | 201 | 5/20/2024 |
| 6.0.9 | 212 | 5/20/2024 |
| 6.0.7 | 201 | 5/18/2024 |
| 6.0.6 | 184 | 5/10/2024 |
| 6.0.5 | 203 | 5/10/2024 |
| 6.0.4 | 549,776 | 4/3/2024 |
| 6.0.3 | 205 | 3/25/2024 |
| 6.0.2 | 200 | 3/11/2024 |
| 6.0.0 | 322 | 11/21/2023 |
| 6.0.0-rc.6 | 145 | 10/25/2023 |
| 6.0.0-rc.5 | 118 | 10/25/2023 |
| 6.0.0-rc.4 | 113 | 10/23/2023 |
| 6.0.0-rc.3 | 115 | 10/19/2023 |
| 6.0.0-rc.2 | 120 | 10/18/2023 |
| 6.0.0-rc.1 | 110 | 10/16/2023 |
| 5.0.20 | 231 | 9/25/2023 |
| 5.0.19 | 288 | 9/10/2023 |
| 5.0.18 | 221 | 9/6/2023 |
| 5.0.17 | 231 | 9/6/2023 |
| 5.0.16 | 213 | 9/5/2023 |
| 5.0.15 | 222 | 9/5/2023 |
| 5.0.14 | 204 | 9/5/2023 |
| 5.0.13 | 213 | 9/1/2023 |
| 5.0.12 | 217 | 8/31/2023 |
| 5.0.11 | 200 | 8/30/2023 |
| 5.0.10 | 230 | 8/29/2023 |
| 5.0.9 | 230 | 8/24/2023 |
| 5.0.8 | 227 | 8/24/2023 |
| 5.0.7 | 243 | 8/23/2023 |
| 5.0.6 | 213 | 8/21/2023 |
| 5.0.5 | 228 | 8/21/2023 |
| 5.0.4 | 256 | 8/16/2023 |
| 5.0.3 | 280 | 8/2/2023 |
| 5.0.2 | 252 | 8/2/2023 |
| 5.0.1 | 237 | 8/1/2023 |
| 5.0.0 | 238 | 7/31/2023 |
| 4.0.6 | 271 | 7/20/2023 |
| 4.0.4 | 262 | 7/10/2023 |
| 4.0.3 | 257 | 7/10/2023 |
| 4.0.1 | 251 | 7/8/2023 |