ControlAgentNet.Policies.InMemory
0.1.2
dotnet add package ControlAgentNet.Policies.InMemory --version 0.1.2
NuGet\Install-Package ControlAgentNet.Policies.InMemory -Version 0.1.2
<PackageReference Include="ControlAgentNet.Policies.InMemory" Version="0.1.2" />
<PackageVersion Include="ControlAgentNet.Policies.InMemory" Version="0.1.2" />
<PackageReference Include="ControlAgentNet.Policies.InMemory" />
paket add ControlAgentNet.Policies.InMemory --version 0.1.2
#r "nuget: ControlAgentNet.Policies.InMemory, 0.1.2"
#:package ControlAgentNet.Policies.InMemory@0.1.2
#addin nuget:?package=ControlAgentNet.Policies.InMemory&version=0.1.2
#tool nuget:?package=ControlAgentNet.Policies.InMemory&version=0.1.2
ControlAgentNet.Policies.InMemory
<p align="center"> <img src="https://img.shields.io/github/license/ControlAgentNet/ControlAgentNet.Policies.InMemory" alt="License"> <img src="https://img.shields.io/github/actions/workflow/status/ControlAgentNet/ControlAgentNet.Policies.InMemory/ci.yml?branch=main" alt="CI"> <img src="https://img.shields.io/nuget/v/ControlAgentNet.Policies.InMemory" alt="NuGet Version"> </p>
In-memory implementation of the ControlAgentNet policy stores.
What This Repository Contains
This repository publishes the ControlAgentNet.Policies.InMemory package and includes a small demo application.
What It Does
This package provides an in-memory implementation of:
IToolPolicyStoreIChannelPolicyStoreIPolicyAuditStore
Use it when you want:
- development or local testing without external storage
- deterministic behavior in tests
- a reference implementation of the policy contracts
Installation
dotnet add package ControlAgentNet.Policies
dotnet add package ControlAgentNet.Policies.InMemory
Usage
using ControlAgentNet.Policies.InMemory;
builder.Services.AddInMemoryPolicyStore();
Limitations
- data is lost on restart
- not suitable for production multi-instance deployments
- use SQLite or another persistent backend for durable storage
Build
dotnet restore ControlAgentNet.Policies.InMemory.slnx
dotnet build ControlAgentNet.Policies.InMemory.slnx -c Release
dotnet test ControlAgentNet.Policies.InMemory.slnx -c Release --no-build
dotnet pack ControlAgentNet.Policies.InMemory.slnx -c Release -o artifacts/nuget
Sample
The repository includes samples/InMemoryDemo to demonstrate scoped policy configuration and resolution with the in-memory store.
Versioning
- local builds:
0.1.2-dev - pull requests:
0.1.2-preview.<run_number> - pushes to
main:0.1.2-alpha.<run_number> - tags like
v0.1.2: exact stable package version0.1.2
See VERSIONING.md for the release flow.
| 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
- ControlAgentNet.Policies (>= 0.1.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
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 |
|---|---|---|
| 0.1.2 | 94 | 4/15/2026 |