Rystem.Content.Infrastructure.M365.Sharepoint
10.0.3
dotnet add package Rystem.Content.Infrastructure.M365.Sharepoint --version 10.0.3
NuGet\Install-Package Rystem.Content.Infrastructure.M365.Sharepoint -Version 10.0.3
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.M365.Sharepoint" Version="10.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.Content.Infrastructure.M365.Sharepoint" Version="10.0.3" />
<PackageReference Include="Rystem.Content.Infrastructure.M365.Sharepoint" />
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.M365.Sharepoint --version 10.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rystem.Content.Infrastructure.M365.Sharepoint, 10.0.3"
#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.M365.Sharepoint@10.0.3
#: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.M365.Sharepoint&version=10.0.3
#tool nuget:?package=Rystem.Content.Infrastructure.M365.Sharepoint&version=10.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is Rystem?
Get information
https://<tenant>.sharepoint.com/sites/<site-url>/_api/site/id
Integration with Sharepoint online and Content Repository
await services
.AddContentRepository()
.WithSharepointIntegrationAsync(x =>
{
x.TenantId = configuration["Sharepoint:TenantId"];
x.ClientId = configuration["Sharepoint:ClientId"];
x.ClientSecret = configuration["Sharepoint:ClientSecret"];
x.MapWithSiteNameAndDocumentLibraryName("TestNumberOne", "Foglione");
//x.MapWithRootSiteAndDocumentLibraryName("Foglione");
//x.MapWithSiteIdAndDocumentLibraryId(configuration["Sharepoint:SiteId"],
// configuration["Sharepoint:DocumentLibraryId"]);
}, "sharepoint")
.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("sharepoint");
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Azure.Identity (>= 1.17.1)
- Microsoft.Graph (>= 5.101.0)
- Rystem.Content.Abstractions (>= 10.0.3)
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.3 | 80 | 1/28/2026 |
| 10.0.1 | 189,819 | 11/12/2025 |
| 9.1.3 | 228 | 9/2/2025 |
| 9.1.2 | 764,481 | 5/29/2025 |
| 9.1.1 | 97,791 | 5/2/2025 |
| 9.0.32 | 186,699 | 4/15/2025 |
| 9.0.31 | 5,792 | 4/2/2025 |
| 9.0.30 | 88,816 | 3/26/2025 |
| 9.0.29 | 9,014 | 3/18/2025 |
| 9.0.28 | 224 | 3/17/2025 |
| 9.0.27 | 256 | 3/16/2025 |
| 9.0.26 | 272 | 3/13/2025 |
| 9.0.25 | 52,100 | 3/9/2025 |
| 9.0.21 | 322 | 3/6/2025 |
| 9.0.20 | 19,598 | 3/6/2025 |
| 9.0.19 | 330 | 3/6/2025 |
| 9.0.18 | 318 | 3/4/2025 |
| 9.0.17 | 219 | 3/1/2025 |
| 9.0.16 | 204 | 3/1/2025 |
| 9.0.15 | 75,526 | 2/22/2025 |
| 9.0.14 | 22,593 | 2/18/2025 |
| 9.0.13 | 228 | 2/9/2025 |
| 9.0.12 | 217,685 | 1/13/2025 |
| 9.0.11 | 24,069 | 1/9/2025 |
| 9.0.10 | 177 | 1/9/2025 |
| 9.0.9 | 4,069 | 1/7/2025 |
| 9.0.8 | 12,565 | 1/6/2025 |
| 9.0.7 | 215 | 1/6/2025 |
| 9.0.4 | 92,335 | 12/23/2024 |
| 9.0.3 | 218 | 12/22/2024 |
| 9.0.2 | 10,746 | 12/21/2024 |
| 9.0.1 | 1,254 | 12/21/2024 |
| 9.0.0 | 173,018 | 11/16/2024 |
| 9.0.0-rc.1 | 144 | 10/18/2024 |
| 6.2.0 | 219,119 | 10/9/2024 |
| 6.1.1 | 219 | 10/9/2024 |
| 6.1.0 | 47,977 | 9/29/2024 |
| 6.0.24 | 246 | 9/11/2024 |
| 6.0.23 | 340,111 | 7/18/2024 |
| 6.0.21 | 231 | 6/18/2024 |
| 6.0.20 | 727,825 | 6/16/2024 |
| 6.0.19 | 30,478 | 6/14/2024 |
| 6.0.18 | 225 | 6/14/2024 |
| 6.0.17 | 219 | 6/14/2024 |
| 6.0.16 | 50,075 | 6/10/2024 |
| 6.0.15 | 232 | 6/9/2024 |
| 6.0.14 | 94,597 | 5/24/2024 |
| 6.0.13 | 233 | 5/23/2024 |
| 6.0.12 | 216 | 5/23/2024 |
| 6.0.11 | 236 | 5/20/2024 |
| 6.0.9 | 255 | 5/20/2024 |
| 6.0.7 | 213 | 5/18/2024 |
| 6.0.6 | 223 | 5/10/2024 |
| 6.0.5 | 226 | 5/10/2024 |
| 6.0.4 | 550,099 | 4/3/2024 |
| 6.0.3 | 295 | 3/25/2024 |
| 6.0.2 | 292 | 3/11/2024 |
| 6.0.0 | 300 | 11/21/2023 |
| 6.0.0-rc.6 | 164 | 10/25/2023 |
| 6.0.0-rc.5 | 130 | 10/25/2023 |
| 6.0.0-rc.4 | 126 | 10/23/2023 |
| 6.0.0-rc.3 | 122 | 10/19/2023 |
| 6.0.0-rc.2 | 140 | 10/18/2023 |
| 6.0.0-rc.1 | 143 | 10/16/2023 |
| 5.0.20 | 244 | 9/25/2023 |
| 5.0.19 | 296 | 9/10/2023 |
| 5.0.18 | 284 | 9/6/2023 |
| 5.0.17 | 249 | 9/6/2023 |
| 5.0.16 | 268 | 9/5/2023 |
| 5.0.15 | 257 | 9/5/2023 |
| 5.0.14 | 279 | 9/5/2023 |
| 5.0.13 | 248 | 9/1/2023 |
| 5.0.12 | 281 | 8/31/2023 |
| 5.0.11 | 265 | 8/30/2023 |
| 5.0.10 | 288 | 8/29/2023 |
| 5.0.9 | 283 | 8/24/2023 |
| 5.0.8 | 278 | 8/24/2023 |
| 5.0.7 | 275 | 8/23/2023 |
| 5.0.6 | 277 | 8/21/2023 |
| 5.0.5 | 311 | 8/21/2023 |
| 5.0.4 | 269 | 8/16/2023 |
| 5.0.3 | 324 | 8/2/2023 |
| 5.0.2 | 300 | 8/2/2023 |
| 5.0.1 | 317 | 8/1/2023 |
| 5.0.0 | 337 | 7/31/2023 |
| 4.0.6 | 339 | 7/20/2023 |
| 4.0.4 | 355 | 7/10/2023 |
| 4.0.3 | 298 | 7/10/2023 |
| 4.0.0 | 311 | 7/9/2023 |