Rystem.Content.Abstractions
10.0.4
dotnet add package Rystem.Content.Abstractions --version 10.0.4
NuGet\Install-Package Rystem.Content.Abstractions -Version 10.0.4
<PackageReference Include="Rystem.Content.Abstractions" Version="10.0.4" />
<PackageVersion Include="Rystem.Content.Abstractions" Version="10.0.4" />
<PackageReference Include="Rystem.Content.Abstractions" />
paket add Rystem.Content.Abstractions --version 10.0.4
#r "nuget: Rystem.Content.Abstractions, 10.0.4"
#:package Rystem.Content.Abstractions@10.0.4
#addin nuget:?package=Rystem.Content.Abstractions&version=10.0.4
#tool nuget:?package=Rystem.Content.Abstractions&version=10.0.4
What is Rystem?
Content Repository Abstractions
You may use this library to help the integration with your business and your several storage repositories.
Dependency injection
services
.AddContentRepository()
.WithIntegration<SimpleIntegration>("example", ServiceLifetime.Singleton);
with integration class
internal sealed class SimpleIntegration : IContentRepository
{
public ValueTask<bool> DeleteAsync(string path, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public Task<ContentRepositoryDownloadResult?> DownloadAsync(string path, ContentInformationType informationRetrieve = ContentInformationType.None, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public ValueTask<bool> ExistAsync(string path, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public Task<ContentRepositoryResult?> GetPropertiesAsync(string path, ContentInformationType informationRetrieve = ContentInformationType.All, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public IAsyncEnumerable<ContentRepositoryDownloadResult> ListAsync(string? prefix = null, bool downloadContent = false, ContentInformationType informationRetrieve = ContentInformationType.None, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public void SetName(string name)
{
throw new NotImplementedException();
}
public ValueTask<bool> SetPropertiesAsync(string path, ContentRepositoryOptions? options = null, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public ValueTask<bool> UploadAsync(string path, byte[] data, ContentRepositoryOptions? options = null, bool overwrite = true, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
}
How to use
If you have only one integration installed at once, you may inject directly
public sealed class SimpleBusiness
{
private readonly IContentRepository _contentRepository;
public SimpleBusiness(IContentRepository contentRepository)
{
_contentRepository = contentRepository;
}
}
In case of multiple integrations you have to use the factory service
DI
services
.AddContentRepository()
.WithIntegration<SimpleIntegration>("example", ServiceLifetime.Singleton);
.WithIntegration<SimpleIntegration2>("example2", ServiceLifetime.Singleton);
in Business class to use the first integration
public sealed class SimpleBusiness
{
private readonly IContentRepository _contentRepository;
public SimpleBusiness(IContentRepositoryFactory contentRepositoryFactory)
{
_contentRepository = contentRepositoryFactory.Create("example");
}
}
in Business class to use the second integration
public sealed class SimpleBusiness
{
private readonly IContentRepository _contentRepository;
public SimpleBusiness(IContentRepositoryFactory contentRepositoryFactory)
{
_contentRepository = contentRepositoryFactory.Create("example2");
}
}
Migration tool
You can migrate from two different sources. For instance from a blob storage to a sharepoint site document library.
Setup in DI
services
.AddSingleton<Utility>()
.AddContentRepository()
.WithBlobStorageIntegrationAsync(x =>
{
x.ContainerName = "supertest";
x.Prefix = "site/";
x.ConnectionString = configuration["ConnectionString:Storage"];
},
"blobstorage")
.ToResult()
.WithInMemoryIntegration("inmemory")
.WithSharepointIntegrationAsync(x =>
{
x.TenantId = configuration["Sharepoint:TenantId"];
x.ClientId = configuration["Sharepoint:ClientId"];
x.ClientSecret = configuration["Sharepoint:ClientSecret"];
x.MapWithSiteNameAndDocumentLibraryName("TestNumberOne", "Foglione");
}, "sharepoint")
.ToResult();
Usage
var result = await _contentMigration.MigrateAsync("blobstorage", "sharepoint",
settings =>
{
settings.OverwriteIfExists = true;
settings.Prefix = prefix;
settings.Predicate = (x) =>
{
return x.Path?.Contains("fileName6") != true;
};
settings.ModifyDestinationPath = x =>
{
return x.Replace("Folder2", "Folder3");
};
}).NoContext();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Rystem.DependencyInjection (>= 10.0.4)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Rystem.Content.Abstractions:
| Package | Downloads |
|---|---|
|
Rystem.Content.Infrastructure.M365.Sharepoint
Rystem.Content helps you to integrate with azure services or to create an abstraction layer among your infrastructure and your business. |
|
|
Rystem.Content.Infrastructure.Storage.Blob
Rystem.Content helps you to integrate with azure services or to create an abstraction layer among your infrastructure and your business. |
|
|
Rystem.Content.Infrastructure.InMemory
Rystem.Content helps you to integrate with azure services or to create an abstraction layer among your infrastructure and your business. |
|
|
Rystem.Content.Infrastructure.Storage.File
Rystem.Content helps you to integrate with azure services or to create an abstraction layer among your infrastructure and your business. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.4 | 178 | 2/9/2026 |
| 10.0.3 | 81,493 | 1/28/2026 |
| 10.0.1 | 209,160 | 11/12/2025 |
| 9.1.3 | 419 | 9/2/2025 |
| 9.1.2 | 764,535 | 5/29/2025 |
| 9.1.1 | 97,892 | 5/2/2025 |
| 9.0.32 | 186,745 | 4/15/2025 |
| 9.0.31 | 5,863 | 4/2/2025 |
| 9.0.30 | 88,916 | 3/26/2025 |
| 9.0.29 | 9,047 | 3/18/2025 |
| 9.0.28 | 287 | 3/17/2025 |
| 9.0.27 | 291 | 3/16/2025 |
| 9.0.26 | 308 | 3/13/2025 |
| 9.0.25 | 52,176 | 3/9/2025 |
| 9.0.23 | 261 | 3/9/2025 |
| 9.0.21 | 389 | 3/6/2025 |
| 9.0.20 | 19,601 | 3/6/2025 |
| 9.0.19 | 363 | 3/6/2025 |
| 9.0.18 | 383 | 3/4/2025 |
| 9.0.17 | 280 | 3/1/2025 |