---
title: "Orleans.Lattice.Api.Replication - Public API"
url: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/api/orleans-lattice-api-replication.html"
source: "https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/docs/lattice.api.abstractions/api.md?plain=1#L1682-L1915"
agent_spec: "https://nsta1.github.io/Orleans.Lattice/docs/agents/api/state.json"
package: "Orleans.Lattice.Api.Abstractions"
version: "10.5.0"
documents: "Orleans.Lattice 10.5.0 (release line 10.5)"
built: "2026-12-05"
all-pages: "https://nsta1.github.io/Orleans.Lattice/llms.txt"
bundle: "https://nsta1.github.io/Orleans.Lattice/docs/lattice.api.abstractions/llms-full.txt"
---
# `Orleans.Lattice.Api.Replication`

Part of [Public API](../api.md).

Implemented by [`Orleans.Lattice.Api.Replication`](../../lattice.api.replication/api.md) and exposed remotely by [`Orleans.Lattice.Api.Replication.Grpc`](../../lattice.api.replication.grpc/api.md). 18 public types.

| Type | Kind | Summary |
|---|---|---|
| `ILatticeReplicationControl` | interface | Transport-agnostic control facade for runtime per-tree cross-cluster replication configuration. |
| `ILatticeReplicationPeerAdmin` | interface | Transport-agnostic facade over the cluster-wide peer decommission verb. |
| `ILatticeReplicationStatus` | interface | Transport-agnostic, read-only facade over the per-peer replication link status a replication-enabled cluster tracks: for each replicated tree and each peer region, in each direction, the outstanding backlog, the error streak, the time since the last successful contact, the in-flight batch count, and a derived `ReplicationLinkHealth`. |
| `ApiReplicationTypeAliases` | static class | Centralized Orleans serialization alias constants for the replication control-API surface (the transport-agnostic contract in `Orleans.Lattice.Api.Abstractions` and the sibling gRPC / MCP bindings that reuse this registry). |
| `LatticeReplicationEngineNotHostedException` | sealed class (exception) | Thrown by `DecommissionPeerAsync` when the caller is authorized but no replication engine is hosted in this process, so there is no `ILatticeReplicationPeerDecommissioner` to carry the decommission out. |
| `ReplicationCapabilities` | sealed record | The read-only result of a replication capability probe (`ProbeCapabilitiesAsync`): whether the current caller may configure replication for one tree, evaluated through the same fail-closed `LatticeOperation.Replication` gate the real enable and disable use, but with no side effects. |
| `ReplicationConfigReport` | sealed record | An operator-facing report of the effective replicated-tree set: one `ReplicationTreeConfigEntry` per enrolled tree the caller is authorized to see. |
| `ReplicationDecommissionPeerResult` | sealed record | The transport-agnostic outcome of a `DecommissionPeerAsync` call. |
| `ReplicationDisableResult` | sealed record | The transport-agnostic outcome of a `DisableReplicationAsync` call. |
| `ReplicationEnableResult` | sealed record | The transport-agnostic outcome of an `EnableReplicationAsync` call. |
| `ReplicationEnrollmentSource` | enum | Which enrollment source put a tree's reported replication configuration in force: the runtime config tree authored through `EnableReplicationAsync`, or the static replicated-tree map supplied as deployment configuration. |
| `ReplicationLinkDirection` | enum | Which way a replication link carries entries, relative to the region that produced the report. |
| `ReplicationLinkHealth` | enum | The health of one replication link, derived by the status facade from the link's backlog, error streak and time since last contact against configured thresholds. |
| `ReplicationLinkStallReason` | enum | The operator-actionable cause of a stalled replication link. |
| `ReplicationPeerStatusEntry` | sealed record | The status of one replication link - one tree, one peer region, one direction - carried in a `ReplicationPeerStatusPage`. |
| `ReplicationPeerStatusPage` | sealed record | One page of per-peer replication link status, returned by `GetPeerStatusAsync`. |
| `ReplicationPeerStatusQuery` | sealed record | The query for `GetPeerStatusAsync`: optional tree and peer-region filters, a page size, and an opaque continuation from a previous page. |
| `ReplicationTreeConfigEntry` | sealed record | A read-only projection of a single tree's effective replication configuration, carried in a `ReplicationConfigReport` returned by `GetReplicationConfigAsync`. |

## `ILatticeReplicationControl`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/ILatticeReplicationControl.cs) (line 31).

`public interface ILatticeReplicationControl`

- `Task<ReplicationEnableResult> EnableReplicationAsync(string treeId, LatticeMergeMode mode, string? bootstrapSourceClusterId = null, CancellationToken cancellationToken = default)`
- `Task<ReplicationDisableResult> DisableReplicationAsync(string treeId, CancellationToken cancellationToken = default)`
- `Task<ReplicationConfigReport> GetReplicationConfigAsync(CancellationToken cancellationToken = default)`
- `Task<ReplicationCapabilities> ProbeCapabilitiesAsync(string treeId, CancellationToken cancellationToken = default)`

## `ILatticeReplicationPeerAdmin`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/ILatticeReplicationPeerAdmin.cs) (line 13).

`public interface ILatticeReplicationPeerAdmin`

- `Task<ReplicationDecommissionPeerResult> DecommissionPeerAsync(string peerClusterId, CancellationToken cancellationToken = default)`

## `ILatticeReplicationStatus`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/ILatticeReplicationStatus.cs) (line 47).

`public interface ILatticeReplicationStatus`

- `Task<ReplicationPeerStatusPage> GetPeerStatusAsync(ReplicationPeerStatusQuery query, CancellationToken cancellationToken = default)`

## `ApiReplicationTypeAliases`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ApiReplicationTypeAliases.cs) (line 17).

`public static class ApiReplicationTypeAliases`

- `public const string AliasPrefix`
- `public const string ReplicationConfigReport`
- `public const string ReplicationTreeConfigEntry`
- `public const string ReplicationEnableResult`
- `public const string ReplicationDisableResult`
- `public const string ReplicationEnrollmentSource`
- `public const string ReplicationPeerStatusQuery`
- `public const string ReplicationPeerStatusPage`
- `public const string ReplicationPeerStatusEntry`
- `public const string ReplicationLinkHealth`
- `public const string ReplicationLinkDirection`
- `public const string ReplicationLinkStallReason`
- `public const string ReplicationDecommissionPeerResult`
- `public const string LatticeReplicationEngineNotHostedException`
- `public const string ReplicationCapabilities`

## `LatticeReplicationEngineNotHostedException`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/LatticeReplicationEngineNotHostedException.cs) (line 26).

`public sealed class LatticeReplicationEngineNotHostedException : InvalidOperationException, ILatticeDomainFault`

- `public LatticeReplicationEngineNotHostedException()`
- `public LatticeReplicationEngineNotHostedException(string message)`
- `public LatticeReplicationEngineNotHostedException(string message, Exception innerException)`

## `ReplicationCapabilities`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationCapabilities.cs) (line 20).

`public sealed record ReplicationCapabilities`

- `public ReplicationCapabilities(string treeId, bool canConfigure)`
- `public string TreeId { get; init; }`
- `public bool CanConfigure { get; init; }`

## `ReplicationConfigReport`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationConfigReport.cs) (line 27).

`public sealed record ReplicationConfigReport`

- `public ReplicationConfigReport(IReadOnlyList<ReplicationTreeConfigEntry> trees)`
- `public IReadOnlyList<ReplicationTreeConfigEntry> Trees { get; init; }`
- `public static ReplicationConfigReport Empty { get; }`

## `ReplicationDecommissionPeerResult`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationDecommissionPeerResult.cs) (line 16).

`public sealed record ReplicationDecommissionPeerResult`

- `public ReplicationDecommissionPeerResult(string peerClusterId, int treeCount, bool alreadyDecommissioned)`
- `public string PeerClusterId { get; init; }`
- `public int TreeCount { get; init; }`
- `public bool AlreadyDecommissioned { get; init; }`

## `ReplicationDisableResult`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationDisableResult.cs) (line 15).

`public sealed record ReplicationDisableResult`

- `public ReplicationDisableResult(string treeId, bool alreadyDisabled)`
- `public string TreeId { get; init; }`
- `public bool AlreadyDisabled { get; init; }`

## `ReplicationEnableResult`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationEnableResult.cs) (line 13).

`public sealed record ReplicationEnableResult`

- `public ReplicationEnableResult(string treeId, LatticeMergeMode mode, bool alreadyEnabled, bool bootstrapRequested)`
- `public string TreeId { get; init; }`
- `public LatticeMergeMode Mode { get; init; }`
- `public bool AlreadyEnabled { get; init; }`
- `public bool BootstrapRequested { get; init; }`

## `ReplicationEnrollmentSource`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationEnrollmentSource.cs) (line 21).

`public enum ReplicationEnrollmentSource`

- `Runtime`
- `Static`
- `RuntimeAndStatic`

## `ReplicationLinkDirection`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationLinkDirection.cs) (line 11).

`public enum ReplicationLinkDirection`

- `Outbound`
- `Inbound`

## `ReplicationLinkHealth`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationLinkHealth.cs) (line 10).

`public enum ReplicationLinkHealth`

- `Unknown`
- `Healthy`
- `Lagging`
- `Stalled`

## `ReplicationLinkStallReason`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationLinkStallReason.cs) (line 6).

`public enum ReplicationLinkStallReason`

- `ReseedRequired`
- `DeadLetterQueueFull`

## `ReplicationPeerStatusEntry`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationPeerStatusEntry.cs) (line 13).

`public sealed record ReplicationPeerStatusEntry`

- `public ReplicationPeerStatusEntry(string treeId, string peerRegionId, ReplicationLinkDirection direction, long entriesBehind, long bytesBehind, long consecutiveErrors, TimeSpan? timeSinceLastContact, long inFlight, ReplicationLinkHealth health)`
- `public string TreeId { get; init; }`
- `public string PeerRegionId { get; init; }`
- `public ReplicationLinkDirection Direction { get; init; }`
- `public long EntriesBehind { get; init; }`
- `public long BytesBehind { get; init; }`
- `public long ConsecutiveErrors { get; init; }`
- `public TimeSpan? TimeSinceLastContact { get; init; }`
- `public long InFlight { get; init; }`
- `public ReplicationLinkHealth Health { get; init; }`
- `public ReplicationLinkStallReason? StallReason { get; init; }`

## `ReplicationPeerStatusPage`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationPeerStatusPage.cs) (line 14).

`public sealed record ReplicationPeerStatusPage`

- `public ReplicationPeerStatusPage(string localRegionId, IReadOnlyList<ReplicationPeerStatusEntry> peers, string? continuationToken)`
- `public string LocalRegionId { get; init; }`
- `public IReadOnlyList<ReplicationPeerStatusEntry> Peers { get; init; }`
- `public string? ContinuationToken { get; init; }`
- `public static ReplicationPeerStatusPage Empty(string localRegionId)`

## `ReplicationPeerStatusQuery`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationPeerStatusQuery.cs) (line 11).

`public sealed record ReplicationPeerStatusQuery`

- `public const int DefaultPageSize`
- `public const int MaxPageSize`
- `public static ReplicationPeerStatusQuery All { get; }`
- `public string? TreeId { get; init; }`
- `public string? PeerRegionId { get; init; }`
- `public int PageSize { get; init; }`
- `public string? ContinuationToken { get; init; }`
- `public int ResolvePageSize()`

## `ReplicationTreeConfigEntry`

[Source](https://github.com/NSTA1/Orleans.Lattice/blob/release/10.5/src/lattice.api.abstractions/Replication/Model/ReplicationTreeConfigEntry.cs) (line 17).

`public sealed record ReplicationTreeConfigEntry`

- `public ReplicationTreeConfigEntry(string treeId, bool enabled, LatticeMergeMode? mode, bool ambiguous)`
- `public string TreeId { get; init; }`
- `public bool Enabled { get; init; }`
- `public LatticeMergeMode? Mode { get; init; }`
- `public bool Ambiguous { get; init; }`
- `public ReplicationEnrollmentSource Source { get; init; }`

Previous: [Orleans.Lattice.Api.Schema](orleans-lattice-api-schema.md). Next: [Orleans.Lattice.Api.Telemetry](orleans-lattice-api-telemetry.md). Contents: [Public API](../api.md).
