Rystem.Content.Abstractions
10.0.1
dotnet add package Rystem.Content.Abstractions --version 10.0.1
NuGet\Install-Package Rystem.Content.Abstractions -Version 10.0.1
<PackageReference Include="Rystem.Content.Abstractions" Version="10.0.1" />
<PackageVersion Include="Rystem.Content.Abstractions" Version="10.0.1" />
<PackageReference Include="Rystem.Content.Abstractions" />
paket add Rystem.Content.Abstractions --version 10.0.1
#r "nuget: Rystem.Content.Abstractions, 10.0.1"
#:package Rystem.Content.Abstractions@10.0.1
#addin nuget:?package=Rystem.Content.Abstractions&version=10.0.1
#tool nuget:?package=Rystem.Content.Abstractions&version=10.0.1
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.1)
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.1 | 353 | 11/12/2025 |
| 9.1.3 | 395 | 9/2/2025 |
| 9.1.2 | 764,507 | 5/29/2025 |
| 9.1.1 | 97,878 | 5/2/2025 |
| 9.0.32 | 186,728 | 4/15/2025 |
| 9.0.31 | 5,847 | 4/2/2025 |
| 9.0.30 | 88,896 | 3/26/2025 |
| 9.0.29 | 9,024 | 3/18/2025 |
| 9.0.28 | 264 | 3/17/2025 |
| 9.0.27 | 273 | 3/16/2025 |
| 9.0.26 | 293 | 3/13/2025 |
| 9.0.25 | 52,156 | 3/9/2025 |
| 9.0.23 | 243 | 3/9/2025 |
| 9.0.21 | 374 | 3/6/2025 |
| 9.0.20 | 19,584 | 3/6/2025 |
| 9.0.19 | 341 | 3/6/2025 |
| 9.0.18 | 360 | 3/4/2025 |
| 9.0.17 | 261 | 3/1/2025 |
| 9.0.16 | 213 | 3/1/2025 |
| 9.0.15 | 75,568 | 2/22/2025 |
| 9.0.14 | 22,606 | 2/18/2025 |
| 9.0.13 | 252 | 2/9/2025 |
| 9.0.12 | 217,791 | 1/13/2025 |
| 9.0.11 | 24,079 | 1/9/2025 |
| 9.0.10 | 165 | 1/9/2025 |
| 9.0.9 | 4,093 | 1/7/2025 |
| 9.0.8 | 12,581 | 1/6/2025 |
| 9.0.7 | 223 | 1/6/2025 |
| 9.0.5 | 19,138 | 12/30/2024 |
| 9.0.4 | 92,383 | 12/23/2024 |
| 9.0.3 | 251 | 12/22/2024 |
| 9.0.2 | 10,772 | 12/21/2024 |
| 9.0.1 | 1,265 | 12/21/2024 |
| 9.0.0 | 173,148 | 11/16/2024 |
| 9.0.0-rc.1 | 164 | 10/18/2024 |
| 6.2.0 | 219,214 | 10/9/2024 |
| 6.1.1 | 270 | 10/9/2024 |
| 6.1.0 | 48,088 | 9/29/2024 |
| 6.0.24 | 298 | 9/11/2024 |
| 6.0.23 | 340,195 | 7/18/2024 |
| 6.0.21 | 267 | 6/18/2024 |
| 6.0.20 | 727,498 | 6/16/2024 |
| 6.0.19 | 31,056 | 6/14/2024 |
| 6.0.18 | 251 | 6/14/2024 |
| 6.0.17 | 267 | 6/14/2024 |
| 6.0.16 | 50,129 | 6/10/2024 |
| 6.0.15 | 289 | 6/9/2024 |
| 6.0.14 | 94,678 | 5/24/2024 |
| 6.0.13 | 287 | 5/23/2024 |
| 6.0.12 | 304 | 5/23/2024 |
| 6.0.11 | 282 | 5/20/2024 |
| 6.0.9 | 309 | 5/19/2024 |
| 6.0.7 | 289 | 5/18/2024 |
| 6.0.6 | 271 | 5/10/2024 |
| 6.0.5 | 294 | 5/10/2024 |
| 6.0.4 | 550,119 | 4/3/2024 |
| 6.0.3 | 307 | 3/25/2024 |
| 6.0.2 | 376 | 3/11/2024 |
| 6.0.1 | 206 | 3/8/2024 |
| 6.0.0 | 438 | 11/21/2023 |
| 6.0.0-rc.6 | 142 | 10/25/2023 |
| 6.0.0-rc.5 | 150 | 10/25/2023 |
| 6.0.0-rc.4 | 114 | 10/23/2023 |
| 6.0.0-rc.3 | 112 | 10/19/2023 |
| 6.0.0-rc.2 | 152 | 10/18/2023 |
| 6.0.0-rc.1 | 132 | 10/16/2023 |
| 5.0.20 | 539 | 9/25/2023 |
| 5.0.19 | 927 | 9/10/2023 |
| 5.0.18 | 386 | 9/6/2023 |
| 5.0.17 | 336 | 9/6/2023 |
| 5.0.16 | 339 | 9/5/2023 |
| 5.0.15 | 345 | 9/5/2023 |
| 5.0.14 | 358 | 9/5/2023 |
| 5.0.13 | 448 | 9/1/2023 |
| 5.0.12 | 328 | 8/31/2023 |
| 5.0.11 | 350 | 8/30/2023 |
| 5.0.10 | 351 | 8/29/2023 |
| 5.0.9 | 367 | 8/24/2023 |
| 5.0.8 | 322 | 8/24/2023 |
| 5.0.7 | 335 | 8/23/2023 |
| 5.0.6 | 354 | 8/21/2023 |
| 5.0.5 | 379 | 8/21/2023 |
| 5.0.4 | 354 | 8/16/2023 |
| 5.0.3 | 556 | 8/2/2023 |
| 5.0.2 | 349 | 8/2/2023 |
| 5.0.1 | 352 | 8/1/2023 |
| 5.0.0 | 357 | 7/31/2023 |
| 4.0.6 | 361 | 7/20/2023 |
| 4.0.4 | 416 | 7/10/2023 |
| 4.0.3 | 320 | 7/10/2023 |
| 4.0.2 | 241 | 7/7/2023 |
| 4.0.1 | 319 | 7/7/2023 |