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). ThrowsArgumentException(namenull/empty),ArgumentNullException(scopenull),ArgumentOutOfRangeException(pageSizenot positive). - Properties:
string Name,BackupScopeSelector Scope,int PageSize.
LatticeBackupIncrementalCaptureRequest
Incremental-capture request.
- Constructor:
LatticeBackupIncrementalCaptureRequest(string name, BackupScopeSelector scope, string baseBackupId, int pageSize = LatticeBackupCaptureRequest.DefaultPageSize). ThrowsArgumentException(nameorbaseBackupIdnull/empty),ArgumentNullException(scopenull),ArgumentOutOfRangeException(pageSizenot positive). - Properties:
string Name,BackupScopeSelector Scope,string BaseBackupId,int PageSize.
LatticeBackupCaptureResult
- Constructor:
LatticeBackupCaptureResult(string backupId, BackupManifest manifest). ThrowsArgumentException(backupIdnull/empty) andArgumentNullException(manifestnull). - Properties:
string BackupId,BackupManifest Manifest.
LatticeBackupSetCaptureRequest
Backup-set request.
- Constructor:
LatticeBackupSetCaptureRequest(string name, IReadOnlyList<BackupScopeSelector> scopes, bool crossTreeConsistent = false, int pageSize = LatticeBackupCaptureRequest.DefaultPageSize). ThrowsArgumentExceptionwhennameis null/empty,scopesis empty, or two scopes name the same tree;ArgumentNullExceptionwhenscopesor a member is null;ArgumentOutOfRangeExceptionwhenpageSizeis not positive. - Properties:
string Name,IReadOnlyList<BackupScopeSelector> Scopes,bool CrossTreeConsistent,int PageSize.
LatticeBackupSetCaptureResult
- Constructor:
LatticeBackupSetCaptureResult(BackupSetManifest setManifest, IReadOnlyList<LatticeBackupCaptureResult> members). ThrowsArgumentNullException(either null) andArgumentException(membersempty). - 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). ThrowsArgumentNullExceptionwhenscopeis null;ArgumentOutOfRangeExceptionwhenintervalis 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). ThrowsArgumentExceptionwhen the name is invalid (seeValidateName), when neither retention bound is set, when anExplicitschedule names no scope, two scopes for one tree, or excluded prefixes, or when anAllTreesschedule names scopes or an empty excluded prefix;ArgumentNullExceptionfor a null scope;ArgumentOutOfRangeExceptionwhenintervalis not strictly positive,retentionKeepLastis below 1,retentionMaxAgeis not strictly positive, ormembershipis 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 toMaxNameLengthcharacters drawn from ASCII letters, digits,-,_and.; throwsArgumentExceptionotherwise.- Properties:
string Name,BackupSetMembershipMode Membership,IReadOnlyList<BackupScopeSelector> Scopes(empty forAllTrees),TimeSpan Interval,int? RetentionKeepLast,TimeSpan? RetentionMaxAge,bool CrossTreeConsistent,bool IncludeNewTrees(alwaysfalseforExplicit),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). ThrowsArgumentException(backupIdnull/empty, ortargetTreeId/operationIdsupplied but empty) andArgumentOutOfRangeException(applyBatchSizenot 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). ThrowsArgumentException(backupId,targetTreeId, oroperationIdnull/empty),ArgumentNullException(manifestChainnull),ArgumentOutOfRangeException(entriesApplied,deadLetteredCrossTenant, ordeadLetteredOverQuotanegative). - 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), andlong 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
AuditRestoreCopiesAsyncandRepairRestoreCopiesAsync. 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 whileHoldis notNone),IReadOnlyList<string> RestoreShadowPhysicalTreeIds(every registered restore shadow of the tree, ordinal order), andLatticeRestoreCopyHold 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.
BackupSetScheduleStatusproperties: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;nullwhen none is).BackupSetScheduleRunProgressproperties: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, thenCapturingMembers- pinning each member's snapshot under the set's gate for a cross-tree-consistent set, capturing and writing each member otherwise - thenWritingMembersfor a cross-tree-consistent set, thenApplyingRetention),long CompletedUnits,long? TotalUnits,string? UnitName(membersin the member phases),string? CurrentTreeId(the tree being pinned or written),DateTimeOffset UpdatedAtUtc. Constructor throwsArgumentExceptionwhenphaseis null or empty. PollGetBackupSetScheduleProgressAsync(onILatticeBackupControl) to follow a run: it returns only this record, ornullonce no run is in flight, so a poller does not re-read every retained set's members on each tick; then readGetBackupSetScheduleStatusAsynconce for the recorded run and retained sets.BackupSetScheduleRunproperties: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.ScheduledBackupSetproperties:string SetId(pass it toRestoreSetAsync/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 throwsArgumentExceptionfor an empty id, name or member list andArgumentNullExceptionfor a null member list.ScheduledBackupSetMemberproperties:BackupScopeSelector Scope,string BackupId,string TreeId(the scope's tree). Constructor throwsArgumentNullException(scopenull) andArgumentException(backupIdnull/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.