IBlueprintCkUpgradeGuard
Namespace: Meshmakers.Octo.Runtime.Contracts.Blueprints
Judges, before a blueprint installs or raises CK models in a tenant, which installed models the CK update set would break (tenant upgrade guard, CK v2 F2.5). Read-only: nothing is written.
public interface IBlueprintCkUpgradeGuard
Remarks:
The guard itself lives with the persistence of the hosting service, because it needs the compiled models of the catalogs and the models persisted in the tenant. The blueprint engine only knows the what - the CK models a blueprint apply or update would install or raise - and asks the host through this interface. A host that registers no implementation runs blueprints unguarded, as before.
Implementations decide which models they judge: service-managed models (System, System.*) are
never judged by the guard policy (embedded System import stays unguarded).
Methods
EvaluateAsync(String, IReadOnlyList<CkModelId>, CancellationToken)
Judges updateSet as one set against the models installed in the tenant.
Task<IReadOnlyList<BlueprintCkUpgradeBlocker>> EvaluateAsync(string tenantId, IReadOnlyList<CkModelId> updateSet, CancellationToken cancellationToken)
Parameters
tenantId String
The tenant.
updateSet IReadOnlyList<CkModelId>
The concrete CK model versions (name + exact floor version) the blueprint would install or raise,
already reduced to the ones the tenant does not hold in a satisfying-or-newer version.
cancellationToken CancellationToken
Cancels the evaluation.
Returns
Task<IReadOnlyList<BlueprintCkUpgradeBlocker>>
The installed models that would break; empty when nothing breaks.
Exceptions
Exception
A failure to judge propagates: the blueprint operation fails closed, it is not silently allowed.