Provance.AspNetCore.Middleware
0.0.3
dotnet add package Provance.AspNetCore.Middleware --version 0.0.3
NuGet\Install-Package Provance.AspNetCore.Middleware -Version 0.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="Provance.AspNetCore.Middleware" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Provance.AspNetCore.Middleware" Version="0.0.3" />
<PackageReference Include="Provance.AspNetCore.Middleware" />
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 Provance.AspNetCore.Middleware --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Provance.AspNetCore.Middleware, 0.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 Provance.AspNetCore.Middleware@0.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=Provance.AspNetCore.Middleware&version=0.0.3
#tool nuget:?package=Provance.AspNetCore.Middleware&version=0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<p align="center"> <img src="provanceMiddleWare.png" alt="PROVANCE Middleware logo" width="120" /> </p>
Provance.AspNetCore.Middleware
ASP.NET Core middleware + DI helpers for integrating PROVANCE tamper-evident audit trails into the request pipeline.
- NuGet:
Provance.AspNetCore.Middleware
Install
dotnet add package Provance.AspNetCore.Middleware
# recommended storage
dotnet add package Provance.Storage.MongoDB
Setup (Minimal API)
using Provance.AspNetCore.Middleware.Extensions;
using Provance.Storage.MongoDB.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddProvanceMongoStorage(builder.Configuration);
builder.Services.AddProvanceLogging(options =>
{
var cfg = builder.Configuration.GetSection("ProvanceProtocol");
options.GenesisHash = cfg["GenesisHash"] ?? string.Empty;
options.SecretKey = cfg["SecretKey"] ?? string.Empty;
});
var app = builder.Build();
app.UseProvanceLogger();
app.Run();
Notes
- v0.0.3 acknowledges requests only after the Single Writer has persisted the entry (strong correctness, higher latency).
- v0.0.4 will introduce durable outbox + overload policies.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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 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
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Provance.Core (>= 0.0.3)
-
net8.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Provance.Core (>= 0.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.
v0.0.3: Single-writer correctness + Sequence ordering.