KamiSama.ServicePlans.PolicyAction 10.0.11.1

dotnet add package KamiSama.ServicePlans.PolicyAction --version 10.0.11.1
                    
NuGet\Install-Package KamiSama.ServicePlans.PolicyAction -Version 10.0.11.1
                    
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="KamiSama.ServicePlans.PolicyAction" Version="10.0.11.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KamiSama.ServicePlans.PolicyAction" Version="10.0.11.1" />
                    
Directory.Packages.props
<PackageReference Include="KamiSama.ServicePlans.PolicyAction" />
                    
Project file
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 KamiSama.ServicePlans.PolicyAction --version 10.0.11.1
                    
#r "nuget: KamiSama.ServicePlans.PolicyAction, 10.0.11.1"
                    
#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 KamiSama.ServicePlans.PolicyAction@10.0.11.1
                    
#: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=KamiSama.ServicePlans.PolicyAction&version=10.0.11.1
                    
Install as a Cake Addin
#tool nuget:?package=KamiSama.ServicePlans.PolicyAction&version=10.0.11.1
                    
Install as a Cake Tool

KamiSama.ServicePlans.PolicyAction

Back to package index

Version: 10.0.0

Description

ASP.NET Core registration and contracts for a ServicePlans-oriented handler over PolicyEngine contexts. The registered handler is currently unimplemented, and the package does not dispatch resolved actions or call ServicePlans features.

How to use

dotnet add package KamiSama.ServicePlans.PolicyAction --version 10.0.0

Publication mismatch: 10.0.0 in the required install command is the current workspace/root documentation version. NuGet returned no published package or version for this exact package ID when reviewed.

Add the package module to an ExtendedWebApplicationBuilder, finish the two-phase module lifecycle with BuildAsync, and resolve the package-specific handler from a scope:

using KamiSama.Modules;
using KamiSama.ServicePlans.PolicyAction;
using Microsoft.Extensions.DependencyInjection;

ExtendedWebApplicationBuilder builder = webBuilder.Extend()
    .AddServicePlansPolicyActionModule();
WebApplication app = await builder.BuildAsync(cancellationToken);

using IServiceScope scope = app.Services.CreateScope();
IServicePlansPolicyActionHandler handler = scope.ServiceProvider
    .GetRequiredService<IServicePlansPolicyActionHandler>();
string handlerName = handler.HandlerName; // service-plans
// Do not call ExecuteAsync in 10.0.0: the registered implementation always throws.

ConfigureServices scans this assembly and registers its internal implementation as scoped. ApplyConfigurationToAsync returns a completed task and adds no middleware, endpoints, or dispatcher. The module does not add PolicyEngine Core or ServicePlans Core; register those independently if the host needs their CRUD or persistence features. Although the project carries both abstractions as package dependencies, current source uses only PolicyEngine's PolicyContext and calls no ServicePlans contract.

This is not an end-to-end PolicyEngine integration. PolicyEngine Abstractions stores ResolvedPolicyAction.HandlerName and configuration as opaque values and defines no action-handler or dispatcher contract. A host would have to match ServicePlansPolicyActionHandlerNames.ServicePlans, select this package-specific interface, and invoke it manually. The current ExecuteAsync throws NotImplementedException synchronously before reading the context, configuration, or cancellation token. CostExpression has no defined serialization format, grammar, validation, fact-key convention, or evaluator, and no computation units are applied to ServicePlans plans, subscribers, or subscriptions. Supply a separate working implementation and dispatcher before relying on this boundary.

Namespaces

Types

Product 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.

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.11.1 46 8/15/2026