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
<PackageReference Include="KamiSama.ServicePlans.PolicyAction" Version="10.0.11.1" />
<PackageVersion Include="KamiSama.ServicePlans.PolicyAction" Version="10.0.11.1" />
<PackageReference Include="KamiSama.ServicePlans.PolicyAction" />
paket add KamiSama.ServicePlans.PolicyAction --version 10.0.11.1
#r "nuget: KamiSama.ServicePlans.PolicyAction, 10.0.11.1"
#:package KamiSama.ServicePlans.PolicyAction@10.0.11.1
#addin nuget:?package=KamiSama.ServicePlans.PolicyAction&version=10.0.11.1
#tool nuget:?package=KamiSama.ServicePlans.PolicyAction&version=10.0.11.1
KamiSama.ServicePlans.PolicyAction
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
- KamiSama.ServicePlans.PolicyAction (6 types)
Types
- KamiSama.ServicePlans.PolicyAction.IServicePlansPolicyActionHandler - Defines this package's handler identity and execution boundary over a PolicyEngine
PolicyContext. It is not a PolicyEngine contract, and the included scoped implementation always throws from execution. - KamiSama.ServicePlans.PolicyAction.ServicePlansPolicyActionConfiguration - Carries an intended computation-unit cost expression. The current package defines no serialization format, expression grammar, validation, or evaluator.
- KamiSama.ServicePlans.PolicyAction.ServicePlansPolicyActionHandlerNames - Defines the exact
service-plansrouting name exposed by this package. PolicyEngine treats the value as opaque and does not dispatch it. - KamiSama.ServicePlans.PolicyAction.ServicePlansPolicyActionModule - Scans this assembly to register the internal handler as scoped and performs no post-build work. It does not register PolicyEngine, ServicePlans, dispatch, middleware, or endpoints.
- KamiSama.ServicePlans.PolicyAction.ServicePlansPolicyActionResult - Carries a decimal computation-unit amount. The registered handler cannot currently produce this result because execution always throws.
- KamiSama.ServicePlans.PolicyAction.ServicePlansPolicyActionWebApplicationBuilderExtensions - Queues the package module on an
ExtendedWebApplicationBuilder. The host must add any PolicyEngine, ServicePlans, and action-dispatch capabilities separately.
| 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
- KamiSama.Extensions.DependencyInjection (>= 10.0.11.1)
- KamiSama.Modules (>= 10.0.11.1)
- KamiSama.Modules.PolicyEngine.Abstractions (>= 10.0.11.1)
- KamiSama.Modules.ServicePlans.Abstractions (>= 10.0.11.1)
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 |