Table of Contents

Requests and results

This page documents Orleans.Lattice.Backup 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at requests-and-results.md, and llms.txt lists every page.

Part of Orleans.Lattice.Backup API reference.

LatticeBackupCaptureRequest

Full-capture request.

  • const int DefaultPageSize = 1024.
  • Constructor: LatticeBackupCaptureRequest(string name, BackupScopeSelector scope, int pageSize = DefaultPageSize). Throws ArgumentException (name null/empty), ArgumentNullException (scope null), ArgumentOutOfRangeException (pageSize not positive).
  • Properties: string Name, BackupScopeSelector Scope, int PageSize.

LatticeBackupIncrementalCaptureRequest

Incremental-capture request.

  • Constructor: LatticeBackupIncrementalCaptureRequest(string name, BackupScopeSelector scope, string baseBackupId, int pageSize = LatticeBackupCaptureRequest.DefaultPageSize). Throws ArgumentException (name or baseBackupId null/empty), ArgumentNullException (scope null), ArgumentOutOfRangeException (pageSize not positive).
  • Properties: string Name, BackupScopeSelector Scope, string BaseBackupId, int PageSize.

LatticeBackupCaptureResult

  • Constructor: LatticeBackupCaptureResult(string backupId, BackupManifest manifest). Throws ArgumentException (backupId null/empty) and ArgumentNullException (manifest null).
  • Properties: string BackupId, BackupManifest Manifest.

LatticeBackupSetCaptureRequest

Backup-set request.

  • Constructor: LatticeBackupSetCaptureRequest(string name, IReadOnlyList<BackupScopeSelector> scopes, bool crossTreeConsistent = false, int pageSize = LatticeBackupCaptureRequest.DefaultPageSize). Throws ArgumentException when name is null/empty, scopes is empty, or two scopes name the same tree; ArgumentNullException when scopes or a member is null; ArgumentOutOfRangeException when pageSize is not positive.
  • Properties: string Name, IReadOnlyList<BackupScopeSelector> Scopes, bool CrossTreeConsistent, int PageSize.

LatticeBackupSetCaptureResult

  • Constructor: LatticeBackupSetCaptureResult(BackupSetManifest setManifest, IReadOnlyList<LatticeBackupCaptureResult> members). Throws ArgumentNullException (either null) and ArgumentException (members empty).
  • Properties: BackupSetManifest SetManifest, IReadOnlyList<LatticeBackupCaptureResult> Members.

LatticeBackupScheduleRequest

A request to register a recurring backup schedule for a scope.

  • Constructor: LatticeBackupScheduleRequest(BackupScopeSelector scope, bool incremental, TimeSpan interval). Throws ArgumentNullException when scope is null; ArgumentOutOfRangeException when interval is not strictly positive.
  • Properties: BackupScopeSelector Scope, bool Incremental, TimeSpan Interval.

A runtime schedule registered from this request overrides the configured LatticeBackupScheduleOptions cadence for the chosen kind; the interval is clamped up to the scheduler minimum when smaller.

LatticeBackupSetScheduleRequest

A request to register a named, recurring backup-set schedule (issue #6067), passed to ILatticeBackupControl.ScheduleBackupSetAsync. Every Interval one backup set is captured over the schedule's trees, cross-tree consistent by default, and the schedule's own retention prunes whole sets. See Scheduled backup sets.

  • const int MaxNameLength = 128.
  • Constructor: LatticeBackupSetScheduleRequest(string name, BackupSetMembershipMode membership, IReadOnlyList<BackupScopeSelector>? scopes, TimeSpan interval, int? retentionKeepLast, TimeSpan? retentionMaxAge, bool crossTreeConsistent = true, bool includeNewTrees = true, IReadOnlyList<string>? excludedTreePrefixes = null). Throws ArgumentException when the name is invalid (see ValidateName), when neither retention bound is set, when an Explicit schedule names no scope, two scopes for one tree, or excluded prefixes, or when an AllTrees schedule names scopes or an empty excluded prefix; ArgumentNullException for a null scope; ArgumentOutOfRangeException when interval is not strictly positive, retentionKeepLast is below 1, retentionMaxAge is not strictly positive, or membership is undefined.
  • static ForTrees(string name, IReadOnlyList<BackupScopeSelector> scopes, TimeSpan interval, int? retentionKeepLast, TimeSpan? retentionMaxAge, bool crossTreeConsistent = true) - a schedule over named scopes, one per distinct tree.
  • static ForAllTrees(string name, TimeSpan interval, bool includeNewTrees, int? retentionKeepLast, TimeSpan? retentionMaxAge, IReadOnlyList<string>? excludedTreePrefixes = null, bool crossTreeConsistent = true) - a schedule over every user tree in the caller's tenant. System, materialised-view, tag-index, system-data and restore-shadow trees, and soft-deleted trees, are never included.
  • static ValidateName(string name) - a name is 1 to MaxNameLength characters drawn from ASCII letters, digits, -, _ and .; throws ArgumentException otherwise.
  • Properties: string Name, BackupSetMembershipMode Membership, IReadOnlyList<BackupScopeSelector> Scopes (empty for AllTrees), TimeSpan Interval, int? RetentionKeepLast, TimeSpan? RetentionMaxAge, bool CrossTreeConsistent, bool IncludeNewTrees (always false for Explicit), IReadOnlyList<string> ExcludedTreePrefixes.

Retention always keeps the newest set, plus the newest RetentionKeepLast sets and every set last captured within RetentionMaxAge; at least one bound is required. The interval is clamped up to the scheduler minimum when smaller.

LatticeRestoreRequest

Restore request.

  • const int DefaultApplyBatchSize = 1024.
  • Constructor: LatticeRestoreRequest(string backupId, string? targetTreeId = null, BackupScopeSelector? scope = null, LatticeRestoreMode mode = LatticeRestoreMode.InPlace, string? operationId = null, int applyBatchSize = DefaultApplyBatchSize). Throws ArgumentException (backupId null/empty, or targetTreeId / operationId supplied but empty) and ArgumentOutOfRangeException (applyBatchSize not positive).
  • Properties: string BackupId, string? TargetTreeId, BackupScopeSelector? Scope, LatticeRestoreMode Mode, string? OperationId, int ApplyBatchSize.

LatticeRestoreResult

  • Constructor: LatticeRestoreResult(string backupId, string targetTreeId, LatticeRestoreMode mode, string operationId, IReadOnlyList<string> manifestChain, long entriesApplied, string? shadowPhysicalTreeId = null, string? previousPhysicalTreeId = null, long deadLetteredCrossTenant = 0, long deadLetteredOverQuota = 0). Throws ArgumentException (backupId, targetTreeId, or operationId null/empty), ArgumentNullException (manifestChain null), ArgumentOutOfRangeException (entriesApplied, deadLetteredCrossTenant, or deadLetteredOverQuota negative).
  • Properties: string BackupId, string TargetTreeId, LatticeRestoreMode Mode, string OperationId, IReadOnlyList<string> ManifestChain, long EntriesApplied, string? ShadowPhysicalTreeId, string? PreviousPhysicalTreeId, long DeadLetteredCrossTenant (records dead-lettered because they were addressed outside the active tenant's namespace), and long DeadLetteredOverQuota (records dead-lettered because admitting them would exceed the active tenant's key quota); both are zero when no tenancy add-on is active.

LatticeRestoreCopyAudit

  • Returned by AuditRestoreCopiesAsync and RepairRestoreCopiesAsync. Properties: string TreeId, string AliasTargetPhysicalTreeId (never retired), string? RevertTargetPhysicalTreeId (the copy the revertible restore returns to, kept), DateTimeOffset? RevertCommittedAtUtc (when that restore committed; its revert window runs from here), IReadOnlyList<string> RetirablePhysicalTreeIds (copies no revert can reach and not yet retired; empty while Hold is not None), IReadOnlyList<string> RestoreShadowPhysicalTreeIds (every registered restore shadow of the tree, ordinal order), and LatticeRestoreCopyHold Hold.

Backup-set schedule status

BackupSetScheduleStatus is returned by ScheduleBackupSetAsync, GetBackupSetScheduleStatusAsync and ListBackupSetSchedulesAsync. Tree ids are effective (tenant-composed) ids, as backup manifests carry them.

  • BackupSetScheduleStatus properties: string Name, LatticeBackupSetScheduleRequest Request (with effective scopes), IReadOnlyList<BackupScopeSelector> MemberScopes (the scopes the next run captures; for a schedule that re-resolves its trees, those the last run captured), bool IsScheduled, DateTimeOffset? NextRunUtc, bool IsRunning, DateTimeOffset RegisteredAtUtc (the anchor runs are timed from), DateTimeOffset? LastRunUtc, DateTimeOffset? LastSuccessUtc, BackupScopeRunOutcome LastOutcome, string? LastFailureReason, int ConsecutiveFailures, IReadOnlyList<BackupSetScheduleRun> RecentRuns (newest first, at most 20), IReadOnlyList<ScheduledBackupSet> RetainedSets (newest first), BackupSetScheduleRunProgress? CurrentRun (the live progress of the run in flight; null when none is).
  • BackupSetScheduleRunProgress properties: DateTimeOffset StartedAtUtc, BackupSetScheduleTrigger Trigger, int Attempt (1 for the first; a retry after a cross-tree fence could not be established counts up), string Phase (ResolvingMembers, then CapturingMembers - pinning each member's snapshot under the set's gate for a cross-tree-consistent set, capturing and writing each member otherwise - then WritingMembers for a cross-tree-consistent set, then ApplyingRetention), long CompletedUnits, long? TotalUnits, string? UnitName (members in the member phases), string? CurrentTreeId (the tree being pinned or written), DateTimeOffset UpdatedAtUtc. Constructor throws ArgumentException when phase is null or empty. Poll GetBackupSetScheduleProgressAsync (on ILatticeBackupControl) to follow a run: it returns only this record, or null once no run is in flight, so a poller does not re-read every retained set's members on each tick; then read GetBackupSetScheduleStatusAsync once for the recorded run and retained sets.
  • BackupSetScheduleRun properties: DateTimeOffset StartedAtUtc, DateTimeOffset FinishedAtUtc, BackupSetScheduleTrigger Trigger, BackupScopeRunOutcome Outcome, string? SetId, int MemberCount, int Attempts (counting retries after a cross-tree fence could not be established), string? FailureReason.
  • ScheduledBackupSet properties: string SetId (pass it to RestoreSetAsync / RestoreTreeSetAsync; for a single-member set, the id that member would have been given), string Name, DateTimeOffset CreatedAtUtc, DateTimeOffset LastCapturedAtUtc (a later run that captures identical content re-captures the same set; retention ranks by this), bool CrossTreeConsistent, IReadOnlyList<ScheduledBackupSetMember> Members (tree-id order). Constructor throws ArgumentException for an empty id, name or member list and ArgumentNullException for a null member list.
  • ScheduledBackupSetMember properties: BackupScopeSelector Scope, string BackupId, string TreeId (the scope's tree). Constructor throws ArgumentNullException (scope null) and ArgumentException (backupId null/empty).

The membership a schedule records never changes, so every retained set restores whole even after a later set captured an unchanged tree into the same content-addressed backup, which moves that backup's own SetId stamp.