Soenneker.Cosmos.Repositories.Audits
4.0.719
Prefix Reserved
dotnet add package Soenneker.Cosmos.Repositories.Audits --version 4.0.719
NuGet\Install-Package Soenneker.Cosmos.Repositories.Audits -Version 4.0.719
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="Soenneker.Cosmos.Repositories.Audits" Version="4.0.719" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Cosmos.Repositories.Audits" Version="4.0.719" />
<PackageReference Include="Soenneker.Cosmos.Repositories.Audits" />
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 Soenneker.Cosmos.Repositories.Audits --version 4.0.719
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Cosmos.Repositories.Audits, 4.0.719"
#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 Soenneker.Cosmos.Repositories.Audits@4.0.719
#: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=Soenneker.Cosmos.Repositories.Audits&version=4.0.719
#tool nuget:?package=Soenneker.Cosmos.Repositories.Audits&version=4.0.719
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Cosmos.Repositories.Audits
Audit records aren't accessible to external resources for mutation. This is essentially a readonly repository.
Install
dotnet add package Soenneker.Cosmos.Repositories.Audits
Quick start
using Soenneker.Cosmos.Repositories.Audits.Registrars;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var result = services.AddAuditsRepositoryAsSingleton();
Adds IAuditsRepository as a singleton service.
What you get
IAuditsRepository— Audit records aren't accessible to external resources for mutation. This is essentially a readonly repository.AuditsRepositoryRegistrar— A data persistence abstraction layer for Cosmos DB Audit type documents.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IAuditsRepository.AddItem(document, useQueue, excludeResponse, cancellationToken) |
DO NOT CALL Hides underlying implementation. | A task whose result is the text returned by add Item. |
IAuditsRepository.UpdateItem(id, document, useQueue, excludeResponse, cancellationToken) |
DO NOT CALL Hides underlying implementation. | A task that completes when the item update is complete. |
IAuditsRepository.DeleteItem(id, useQueue, cancellationToken) |
DO NOT CALL Hides underlying implementation. | A task that completes when the item deletion is complete. |
AuditsRepositoryRegistrar.AddAuditsRepositoryAsSingleton(services) |
Adds IAuditsRepository as a singleton service. |
The same service collection, so additional registrations can be chained. |
AuditsRepositoryRegistrar.AddAuditsRepositoryAsScoped(services) |
Adds IAuditsRepository as a scoped service. |
The same service collection, so additional registrations can be chained. |
Important behavior
IAuditsRepository.AddItem(document, useQueue, excludeResponse, cancellationToken): "Audit records may not be added explicitly.".IAuditsRepository.UpdateItem(id, document, useQueue, excludeResponse, cancellationToken): "Audit records may not be updated.".IAuditsRepository.DeleteItem(id, useQueue, cancellationToken): "Audit records may not be deleted.".
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
| 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
- Soenneker.Cosmos.Repository (>= 4.0.8151)
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 |
|---|---|---|
| 4.0.719 | 0 | 8/29/2026 |
| 4.0.718 | 0 | 8/29/2026 |
| 4.0.717 | 0 | 8/29/2026 |
| 4.0.716 | 68 | 8/27/2026 |
| 4.0.715 | 77 | 8/27/2026 |
| 4.0.714 | 79 | 8/26/2026 |
| 4.0.713 | 69 | 8/26/2026 |
| 4.0.712 | 69 | 8/26/2026 |
| 4.0.711 | 62 | 8/26/2026 |
| 4.0.710 | 90 | 8/22/2026 |
| 4.0.709 | 81 | 8/22/2026 |
| 4.0.708 | 95 | 8/22/2026 |
| 4.0.707 | 90 | 8/22/2026 |
| 4.0.706 | 84 | 8/21/2026 |
| 4.0.705 | 150 | 8/21/2026 |
| 4.0.704 | 186 | 8/19/2026 |
| 4.0.703 | 110 | 8/19/2026 |
| 4.0.702 | 97 | 8/18/2026 |
| 4.0.701 | 88 | 8/18/2026 |
| 4.0.700 | 93 | 8/18/2026 |
Loading failed
Update dependency Soenneker.Cosmos.Repository to 4.0.8151 (#1243)