Table of Contents

Orleans.Lattice.Api.Operations

This page documents Orleans.Lattice.Api.Abstractions 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 orleans-lattice-api-operations.md, and llms.txt lists every page.

Part of Public API.

The shared accept-then-poll contract for long-running facade work. Implemented by the backup, schema and tree-administration facades through their operation-tracking interfaces. Narrative: Long-running operations.

Type Kind Summary
ILatticeOperations interface The shared read-and-cancel surface over long-running operations.
ApiOperationTypeAliases static class Centralized Orleans serialization alias constants for the shared long-running-operation contract in Orleans.Lattice.Api.Abstractions.
LatticeOperationHandle sealed record The handle a start verb returns as soon as a long-running operation has been accepted: the id to poll with, its kind and its scope.
LatticeOperationListRequest sealed record A request for one page of the caller's operations, newest-first.
LatticeOperationPage sealed record One page of operations, newest-first.
LatticeOperationScope sealed record What a long-running operation acts on: the tenant that owns it and the effective (tenant-scoped) trees it targets.
LatticeOperationState enum The lifecycle state of a long-running operation.
LatticeOperationStatus sealed record A point-in-time snapshot of one long-running operation.

ILatticeOperations

Source (line 16).

public interface ILatticeOperations

  • Task<LatticeOperationStatus?> GetOperationStatusAsync(string operationId, CancellationToken cancellationToken = default)
  • Task<LatticeOperationPage> ListOperationsAsync(LatticeOperationListRequest request, CancellationToken cancellationToken = default)
  • Task<LatticeOperationStatus?> CancelOperationAsync(string operationId, CancellationToken cancellationToken = default)

ApiOperationTypeAliases

Source (line 9).

public static class ApiOperationTypeAliases

  • public const string AliasPrefix
  • public const string LatticeOperationScope
  • public const string LatticeOperationHandle
  • public const string LatticeOperationStatus
  • public const string LatticeOperationListRequest
  • public const string LatticeOperationPage
  • public const string LatticeOperationState

LatticeOperationHandle

Source (line 11).

public sealed record LatticeOperationHandle

  • public required string OperationId { get; init; }
  • public required string Kind { get; init; }
  • public required LatticeOperationScope Scope { get; init; }
  • public bool Created { get; init; }

LatticeOperationListRequest

Source (line 7).

public sealed record LatticeOperationListRequest

  • public const int DefaultPageSize
  • public const int MaxPageSize
  • public int PageSize { get; init; }
  • public string? PageToken { get; init; }
  • public int EffectivePageSize

LatticeOperationPage

Source (line 11).

public sealed record LatticeOperationPage

  • public IReadOnlyList<LatticeOperationStatus> Operations { get; init; }
  • public string? NextPageToken { get; init; }

LatticeOperationScope

Source (line 11).

public sealed record LatticeOperationScope

  • public required string TenantId { get; init; }
  • public IReadOnlyList<string> TreeIds { get; init; }

LatticeOperationState

Source (line 9).

public enum LatticeOperationState

  • Queued
  • Running
  • Succeeded
  • Failed
  • Cancelled

LatticeOperationStatus

Source (line 19).

public sealed record LatticeOperationStatus

  • public required string OperationId { get; init; }
  • public required string Kind { get; init; }
  • public required LatticeOperationScope Scope { get; init; }
  • public required LatticeOperationState State { get; init; }
  • public required string Phase { get; init; }
  • public int? PhaseIndex { get; init; }
  • public int? PhaseCount { get; init; }
  • public long CompletedUnits { get; init; }
  • public long? TotalUnits { get; init; }
  • public string? UnitName { get; init; }
  • public DateTimeOffset StartedAtUtc { get; init; }
  • public DateTimeOffset? FinishedAtUtc { get; init; }
  • public string? FailureReason { get; init; }
  • public string? ResultReference { get; init; }
  • public IReadOnlyDictionary<string, string> Result { get; init; }
  • public bool CancelRequested { get; init; }
  • public bool IsTerminal