Orleans.Lattice.Api.Schema
9.9.0
dotnet add package Orleans.Lattice.Api.Schema --version 9.9.0
NuGet\Install-Package Orleans.Lattice.Api.Schema -Version 9.9.0
<PackageReference Include="Orleans.Lattice.Api.Schema" Version="9.9.0" />
<PackageVersion Include="Orleans.Lattice.Api.Schema" Version="9.9.0" />
<PackageReference Include="Orleans.Lattice.Api.Schema" />
paket add Orleans.Lattice.Api.Schema --version 9.9.0
#r "nuget: Orleans.Lattice.Api.Schema, 9.9.0"
#:package Orleans.Lattice.Api.Schema@9.9.0
#addin nuget:?package=Orleans.Lattice.Api.Schema&version=9.9.0
#tool nuget:?package=Orleans.Lattice.Api.Schema&version=9.9.0
Orleans.Lattice.Api.Schema
Optional, opt-in schema-management control facade add-on for
Orleans.Lattice. Exposes a single
transport-agnostic admin surface that drives the
Orleans.Lattice.Schema
engine - set / clear / inspect enforcement policy, dead-letter inspection,
envelope versioning (set / advance / migrate / clear), background remediation,
a read-only per-tree compliance audit, and a side-effect-free capability probe -
from one place. A sibling package projects this facade onto a code-first gRPC
surface.
Design
The facade mirrors the read-only Orleans.Lattice.Api.State and the backup
Orleans.Lattice.Api.Backup control facades: the facade is the contract,
transports bind over it, and it costs nothing until it is registered.
- Read-only compliance audit.
ScanComplianceAsyncstreams a tree's current values through its compiled policy and returns per-tree counts of compliant vs non-compliant values, grouped by failure reason. It is a pure read - it never rewrites or dead-letters data - and honours cancellation between values. - Bounded-memory enumeration. Dead-letter listing is streamed, so a large strict-mode queue enumerates with bounded memory.
- Accept-then-poll remediation and migration.
ILatticeSchemaOperationsstarts a remediation, migration or advance-and-migrate and returns a handle at once; pollGetOperationStatusAsyncfor the phase (dry run, build, cutover) and the values processed, and cancel before cutover withCancelOperationAsync.
Deprecated
RemediateAsync, MigrateToTargetVersionAsync and AdvanceAndMigrateAsync on
ILatticeSchemaControl block until the run ends, so a long run is cut off by the
caller's timeout. They raise warning LATTICE0002 and will be removed in the
next major version; use the ILatticeSchemaOperations start verbs instead.
Security
Every operation authorizes its tree through the same schema access gate the
engine uses, before touching the admin plane. A mutation (set / clear policy,
version-config change, remediation) authorizes on SchemaAdmin authority; a read
(inspect policy / version config / dead letters / remediation status, or the
compliance audit) authorizes on ordinary Read authority. A capability probe
reports the caller's allowed operation set per tree with no side effects.
- Opt-in and absent by default. Nothing is registered unless the host calls
AddLatticeSchemaApi(), and once added the facade does no background work until a method is called. - Must be registered after
AddLatticeSchemaEnforcement(...). The call fails fast with an actionable message otherwise. Version operations additionally requireAddLatticeSchemaVersioning(...).
Usage
siloBuilder
.AddLattice(/* ... */)
.AddLatticeSchemaEnforcement()
.AddLatticeSchemaApi();
Bind a transport over the facade to drive schema management remotely: the sibling
Orleans.Lattice.Api.Schema.Grpc package projects it onto a code-first gRPC
surface.
| 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
- Microsoft.Orleans.Sdk (>= 10.2.2)
- Orleans.Lattice (>= 9.9.0)
- Orleans.Lattice.Api.Abstractions (>= 9.9.0)
- Orleans.Lattice.Schema (>= 9.9.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Orleans.Lattice.Api.Schema:
| Package | Downloads |
|---|---|
|
Orleans.Lattice.Api.TreeAdmin
Optional transport-agnostic control facade add-on for Orleans.Lattice whole-tree administration. Presents one discoverable, fail-closed surface for capability probes, shard diagnostics and hotness, tree statistics, storage and WAL usage, tree lifecycle, configuration and aliases, bulk load, resize, reshard, snapshots, restore, WAL placement and moves, view administration, tag-index repair, retention, shard compaction, the orphaned-leaf audit, survey and repair, and schema-capability delegation. Registered separately; adds no transport behaviour of its own. |
GitHub repositories
This package is not used by any popular GitHub repositories.