Public API
This page documents Orleans.Lattice.Apps 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 api.md, and llms.txt lists every page.This page indexes the public surface declared by Orleans.Lattice.Apps. The engine provides the registry, source, activation, ownership, role-compilation, and subscription seams. Transport contracts live in Orleans.Lattice.Api.Abstractions; see the control facade API.
Registration
LatticeAppsServiceCollectionExtensions declares these public extension overloads. AddLatticeApps follows AddLattice; AddLatticeApp makes the manifest installable but does not install or enable it.
| Public signature |
|---|
ISiloBuilder AddLatticeApps(this ISiloBuilder builder, Action<LatticeAppsOptions>? configure = null) |
IServiceCollection AddLatticeApps(this IServiceCollection services, Action<LatticeAppsOptions>? configure = null) |
ISiloBuilder AddLatticeApp(this ISiloBuilder builder, string slug, Assembly assembly, string manifestResourceName) |
IServiceCollection AddLatticeApp(this IServiceCollection services, string slug, Assembly assembly, string manifestResourceName) |
ISiloBuilder AddLatticeApp(this ISiloBuilder builder, string slug, Assembly assembly, string manifestResourceName, string assetResourcePrefix) |
IServiceCollection AddLatticeApp(this IServiceCollection services, string slug, Assembly assembly, string manifestResourceName, string assetResourcePrefix) |
ISiloBuilder AddLatticeAppSource<TSource>(this ISiloBuilder builder) where TSource : class, IAppCatalogSource |
IServiceCollection AddLatticeAppSource<TSource>(this IServiceCollection services) where TSource : class, IAppCatalogSource |
ISiloBuilder AddLatticeAppSource(this ISiloBuilder builder, IAppCatalogSource instance) |
IServiceCollection AddLatticeAppSource(this IServiceCollection services, IAppCatalogSource instance) |
IServiceCollection AddLatticeAppSubscriptionHandler<THandler>(this IServiceCollection services, AppSlug app, string subscriptionName) where THandler : class, IAppChangeFeedHandler |
IServiceCollection AddLatticeAppSubscriptionHandler(this IServiceCollection services, AppSlug app, string subscriptionName, Func<IServiceProvider, IAppChangeFeedHandler> factory) |
The public registration/configuration members on the in-image option and registration types are:
| Public type | Public members |
|---|---|
InImageAppSourceOptions |
IList<InImageAppRegistration> Registrations { get; }; InImageAppSourceOptions Register(AppSlug slug, Assembly assembly, string manifestResourceName) |
InImageAppRegistration |
InImageAppRegistration(AppSlug slug, Assembly assembly, string manifestResourceName); AppSlug Slug { get; }; Assembly Assembly { get; }; string ManifestResourceName { get; }; string Publisher { get; init; }; string AssetResourcePrefix { get; init; } |
Public type inventory
Each identifier below is a public top-level type declared by this package. The interfaces and operational methods are listed in the following sections; manifest/result records are grouped by function and described in the engine guide.
| Area | Public types |
|---|---|
| Registration/options | LatticeAppsServiceCollectionExtensions, LatticeAppsOptions |
| Activation | AppActivationFailure, AppActivationOperation, AppActivationOutcome, AppActivationStatus, IAppActivationPipeline |
| Role compilation | AppCeilingExcess, AppCeilingExcessKind, AppRoleCompiler, AppRuleCompilation, AppRuleSetDiff |
| Consent/bindings | AppCapabilityCeiling, AppRoleBinding |
| Manifest identity/parsing | AppIconReference, AppIdentity, AppManifest, AppManifestError, AppManifestParser, AppManifestResources, AppManifestResult, AppManifestValidator, AppSlug, AppVersion |
| Manifest declarations | AppMcpToolDeclaration, AppPresentation, AppProvenance, AppReplicationDeclaration, AppRoleDeclaration, AppSchemaDeclaration, AppScopeTemplate, AppSubscriptionDeclaration, AppTreeDeclaration, AppUiAsset, AppUiBridgeDeclaration, AppUiBridgeGrant, AppUiBridgeOperations, AppUiBridgeRequest, AppUiBundle, AppUiDeclaration, AppUiProtocol, AppUiScript |
| Ownership | AppTreeOwnerSnapshot, AppTreeOwnershipConflict, AppTreeOwnershipConflictReason |
| Registry | AppIsolationContext, AppRegistryInstallRequest, AppRegistryLifecycleState, AppRegistryRecord, AppRegistryTransitionError, AppRegistryTransitionResult, CompiledAppRegistrySnapshot, IAppRegistry, IAppRegistryProjection |
| Sources | AppActivationResult, AppAssetResult, AppAssetStatus, AppSourceCapabilities, AppSourceDescriptor, AppSourceEntry, AppSourceKind, AppSourcePage, AppSourceQuery, AppSourceResult, AppSourceSet, AppSourceStatus, IAppActivationHandle, IAppCatalogSource, IAppSource, InImageAppRegistration, InImageAppSource, InImageAppSourceOptions |
| Subscriptions | AppSubscriptionCompilation, AppSubscriptionCompiler, AppSubscriptionContext, AppSubscriptionDenial, IAppChangeFeedHandler |
Operational contracts
IAppActivationPipeline exposes EnableAsync, DisableAsync, UninstallAsync, ReconcileAsync, GetStatusAsync, and GetRunningOperationAsync; each is tenant- and slug-scoped and accepts a cancellation token. Mutations return AppActivationOutcome; the status read returns nullable AppActivationStatus; the running-operation read returns the nullable AppActivationOperation of the run executing right now (its default interface implementation returns null), so a reader can report a run in flight as pending rather than failed.
IAppRegistry exposes install/upgrade transitions, enable/disable/uninstall transitions, tenant/global enumeration, and a read-only tree-ownership conflict query. IAppRegistryProjection exposes the current CompiledAppRegistrySnapshot and its epoch, warm-up (EnsureWarmAsync), and cluster-wide currency (EnsureCurrentAsync), which a surface that decides access on the snapshot calls first because the change feed that refreshes it fires only on the silo that committed the registry write. Prefer ILatticeAppsControl for caller-facing administration because it resolves the tenant and authorizes before registry access.
AppManifestParser.Parse(string?) and Parse(Stream) return an AppManifestResult; AppManifestValidator.Validate(AppManifest?, AppManifest? previous = null) validates a manifest and optional previous version. IAppSource resolves a slug/version; IAppCatalogSource additionally exposes a descriptor, paged listing, and digest-checked asset opening. IAppChangeFeedHandler.HandleAsync(AppSubscriptionContext, LatticeMutation, CancellationToken) receives subscribed mutations.
Source map
- Registration
- Manifest root
- Registry contract
- Activation contract
- Source contract
- Subscription handler contract
Public declaration reference
The following inventory includes directly declared public members and overloads, enum values, and record positional members. Inherited framework members and compiler-generated record equality helpers are not additional package operations. Each source link identifies the declaration that defines its signature.
Orleans.Lattice.Apps.AppActivationFailure
Source (line 7).
public enum AppActivationFailure
None = 0NotInstalled = 1InvalidTransition = 2CeilingNotPinned = 3MembershipNotRegistered = 4AuthorizationNotRegistered = 5SourceUnavailable = 6VersionMismatch = 7InvalidManifest = 8CeilingExceeded = 9UnknownRoleBinding = 10TreeProvisioningFailed = 11RulePersistenceFailed = 12RegistryConflict = 13Faulted = 14ReplicationModeChangeRejected = 15ReplicationPreconditionFailed = 16ReplicationEnrolmentFailed = 17TreeOwnershipConflict = 18BridgeConsentRequired = 19AppRoleBindingTenantMismatch = 20
Orleans.Lattice.Apps.AppActivationOperation
Source (line 6).
public enum AppActivationOperation
Enable = 0Disable = 1Uninstall = 2Reconcile = 3
Orleans.Lattice.Apps.AppActivationOutcome
Source (line 9).
public sealed record AppActivationOutcome
public required TenantId Tenant { get; init; }public required AppSlug Slug { get; init; }public required AppActivationOperation Operation { get; init; }public AppActivationFailure Failure { get; init; }public AppVersion? Version { get; init; }public AppRegistryLifecycleState? State { get; init; }public bool Changed { get; init; }public IReadOnlyList<AppManifestError> Diagnostics { get; init; }public DateTimeOffset CompletedAtUtc { get; init; }public bool Succeeded
Orleans.Lattice.Apps.AppActivationResult
Source (line 9).
public sealed class AppActivationResult
public bool IsActivatedpublic Assembly? Assembly { get; }public IReadOnlyList<AppManifestError> Errors { get; }public static AppActivationResult Activated(Assembly assembly)public static AppActivationResult Failed(IReadOnlyList<AppManifestError> errors)
Orleans.Lattice.Apps.AppActivationStatus
Source (line 7).
public sealed record AppActivationStatus
public required TenantId Tenant { get; init; }public required AppSlug Slug { get; init; }public required AppActivationOutcome LastOutcome { get; init; }public AppManifest? AppliedManifest { get; init; }public IReadOnlyDictionary<string, bool> ReplicationTrees { get; init; }
Orleans.Lattice.Apps.AppCapabilityCeiling
Source (line 11).
public sealed record AppCapabilityCeiling
public LatticeOperation AllowedOperations { get; init; }public IReadOnlyList<LatticeScope> ApprovedExceptionScopes { get; init; }public static AppCapabilityCeiling Structural(LatticeOperation allowed)
Orleans.Lattice.Apps.AppCeilingExcess
Source (line 20).
public sealed record AppCeilingExcess( string RoleName, AppCeilingExcessKind Kind, LatticeOperation Operations, LatticeScope? Scope)
Primary constructor / positional members: ( string RoleName, AppCeilingExcessKind Kind, LatticeOperation Operations, LatticeScope? Scope)
Orleans.Lattice.Apps.AppCeilingExcessKind
Source (line 4).
public enum AppCeilingExcessKind
Operations = 0Scope = 1
Orleans.Lattice.Apps.AppIconReference
Source (line 7).
public sealed record AppIconReference
public required string Path { get; init; }public required string Digest { get; init; }
Orleans.Lattice.Apps.AppIdentity
Source (line 4).
public sealed record AppIdentity
public required AppSlug Slug { get; init; }public required AppVersion Version { get; init; }public AppProvenance Provenance { get; init; }
Orleans.Lattice.Apps.AppIsolationContext
Source (line 10).
public sealed record AppIsolationContext
public required TenantId Tenant { get; init; }public required string ClusterId { get; init; }
Orleans.Lattice.Apps.AppManifest
Source (line 4).
public sealed record AppManifest
public required AppIdentity Identity { get; init; }public required AppTreeDeclaration[] Trees { get; init; }public required AppRoleDeclaration[] Roles { get; init; }public AppReplicationDeclaration[]? Replication { get; init; }public AppSchemaDeclaration[]? Schema { get; init; }public required AppSubscriptionDeclaration[] Subscriptions { get; init; }public required AppMcpToolDeclaration[] McpTools { get; init; }public AppPresentation? Presentation { get; init; }public AppUiDeclaration? Ui { get; init; }
Orleans.Lattice.Apps.AppManifestError
Source (line 7).
public sealed record AppManifestError( string Code, string Path, string Message)
Primary constructor / positional members: ( [property: Id(0)] string Code, [property: Id(1)] string Path, [property: Id(2)] string Message)
Orleans.Lattice.Apps.AppManifestParser
Source (line 8).
public static class AppManifestParser
public static AppManifestResult Parse(string? json)public static AppManifestResult Parse(Stream stream)
Orleans.Lattice.Apps.AppManifestResources
Source (line 6).
public static class AppManifestResources
public static AppManifestResult Load(Assembly assembly, string resourceName)public static string GetJsonSchema()
Orleans.Lattice.Apps.AppManifestResult
Source (line 4).
public sealed class AppManifestResult
public bool IsValidpublic AppManifest? Manifest { get; }public IReadOnlyList<AppManifestError> Errors { get; }
Orleans.Lattice.Apps.AppManifestValidator
Source (line 6).
public static partial class AppManifestValidator
public static IReadOnlyList<AppManifestError> ValidateUiEntryFragment(ReadOnlySpan<byte> utf8Fragment)
Source (line 6).
public static partial class AppManifestValidator
public static AppManifestResult Validate(AppManifest? manifest, AppManifest? previous = null)
Orleans.Lattice.Apps.AppMcpToolDeclaration
Source (line 4).
public sealed record AppMcpToolDeclaration
public required string Name { get; init; }public required string Description { get; init; }public required string Role { get; init; }
Orleans.Lattice.Apps.AppPresentation
Source (line 8).
public sealed record AppPresentation
public required string DisplayName { get; init; }public string? Summary { get; init; }public string? Description { get; init; }public AppIconReference? Icon { get; init; }public string[]? Categories { get; init; }public string? DocumentationUrl { get; init; }public string? PublisherDisplayName { get; init; }
Orleans.Lattice.Apps.AppProvenance
Source (line 4).
public sealed record AppProvenance
public string Source { get; init; }public string Publisher { get; init; }public string? Reference { get; init; }
Orleans.Lattice.Apps.AppRegistryInstallRequest
Source (line 9).
public sealed record AppRegistryInstallRequest
public TenantId Tenant { get; init; }public required AppIdentity Identity { get; init; }public required AppCapabilityCeiling Ceiling { get; init; }public IReadOnlyList<AppRoleBinding> RoleBindings { get; init; }public AppVersion? ExpectedVersion { get; init; }public AppUiBridgeRequest? BridgeConsent { get; init; }public long? ExpectedRevision { get; init; }
Orleans.Lattice.Apps.AppRegistryLifecycleState
Source (line 11).
public enum AppRegistryLifecycleState
Installed = 1Enabled = 2Disabled = 3Uninstalled = 4
Orleans.Lattice.Apps.AppRegistryRecord
Source (line 19).
public sealed record AppRegistryRecord
public required AppIsolationContext Isolation { get; init; }public required AppSlug Slug { get; init; }public required AppVersion Version { get; init; }public required AppProvenance Provenance { get; init; }public required AppCapabilityCeiling Ceiling { get; init; }public required AppVersion CeilingVersion { get; init; }public IReadOnlyList<AppRoleBinding> RoleBindings { get; init; }public required AppRegistryLifecycleState State { get; init; }public long Revision { get; init; }public DateTimeOffset InstalledAtUtc { get; init; }public DateTimeOffset StateChangedAtUtc { get; init; }public DateTimeOffset ConsentedAtUtc { get; init; }public string? ConsentedBy { get; init; }public AppUiBridgeRequest? ConsentedBridge { get; init; }public TenantId Tenantpublic bool IsCeilingPinnedToVersion
Orleans.Lattice.Apps.AppRegistryTransitionError
Source (line 4).
public enum AppRegistryTransitionError
None = 0NotInstalled = 1AlreadyInstalled = 2InvalidTransition = 3CeilingNotPinned = 4ConcurrencyConflict = 5TreeOwnershipConflict = 6
Orleans.Lattice.Apps.AppRegistryTransitionResult
Source (line 8).
public sealed record AppRegistryTransitionResult
public AppRegistryRecord? Record { get; init; }public AppRegistryTransitionError Error { get; init; }public bool Changed { get; init; }public string? Message { get; init; }public bool Succeeded
Orleans.Lattice.Apps.AppReplicationDeclaration
Source (line 4).
public sealed record AppReplicationDeclaration
public required string Tree { get; init; }public required LatticeMergeMode MergeMode { get; init; }
Orleans.Lattice.Apps.AppRoleBinding
Source (line 7).
public sealed record AppRoleBinding
public required string RoleName { get; init; }public required string GroupId { get; init; }public static AppRoleBinding Create(string roleName, string groupId)
Orleans.Lattice.Apps.AppRoleCompiler
Source (line 77).
public static class AppRoleCompiler
public static string GetOwnedRuleIdPrefix(AppSlug slug)public static AppRuleCompilation Compile( AppManifest manifest, TenantId tenant, IReadOnlyList<AppRoleBinding> bindings, AppCapabilityCeiling ceiling, AppTreeOwnerSnapshot? owners = null)public static AppRuleSetDiff ComputeDiff( AppSlug slug, IReadOnlyList<LatticeAuthorizationRule> compiled, IEnumerable<LatticeAuthorizationRule> stored)
Orleans.Lattice.Apps.AppRoleDeclaration
Source (line 4).
public sealed record AppRoleDeclaration
public required string Name { get; init; }public required LatticeOperation Operations { get; init; }public required AppScopeTemplate[] Scopes { get; init; }
Orleans.Lattice.Apps.AppRuleCompilation
Source (line 11).
public sealed class AppRuleCompilation
public bool Succeededpublic IReadOnlyList<LatticeAuthorizationRule> Rules { get; }public IReadOnlyList<AppCeilingExcess> Excesses { get; }public IReadOnlyList<AppRoleBinding> UnknownRoleBindings { get; }public IReadOnlyList<AppRoleBinding> TenantMismatchBindings { get; }public IReadOnlyList<string> UnboundRoles { get; }
Orleans.Lattice.Apps.AppRuleSetDiff
Source (line 10).
public sealed class AppRuleSetDiff
public IReadOnlyList<LatticeAuthorizationRule> ToUpsert { get; }public IReadOnlyList<LatticeAuthorizationRule> ToDelete { get; }public bool IsEmpty
Orleans.Lattice.Apps.AppSchemaDeclaration
Source (line 4).
public sealed record AppSchemaDeclaration
public required string Tree { get; init; }public required string Family { get; init; }public required int Version { get; init; }public bool StrictIngest { get; init; }
Orleans.Lattice.Apps.AppScopeTemplate
Source (line 6).
public sealed record AppScopeTemplate
public required string Tree { get; init; }public AppSlug? App { get; init; }public LatticeScopeKind Kind { get; init; }public string? KeyOrPrefix { get; init; }
Orleans.Lattice.Apps.AppSlug
Source (line 7).
public readonly record struct AppSlug
public string Value { get; private init; }public static AppSlug Parse(string value)public static bool TryParse(string? value, out AppSlug slug)public override string ToString()
Orleans.Lattice.Apps.AppSourceResult
Source (line 9).
public sealed class AppSourceResult
public AppSourceStatus Status { get; }public bool IsResolvedpublic AppSlug Slug { get; }public AppManifest? Manifest { get; }public AppProvenance? Provenance { get; }public IAppActivationHandle? Activation { get; }public AppVersion? RequestedVersion { get; }public AppVersion? AvailableVersion { get; }public IReadOnlyList<string> SourceKeys { get; }public IReadOnlyList<AppManifestError> Errors { get; }public static AppSourceResult Resolved(AppManifest manifest, AppProvenance provenance, IAppActivationHandle activation)public static AppSourceResult NotFound(AppSlug slug)public static AppSourceResult VersionMismatch(AppSlug slug, AppVersion requested, AppVersion available)public static AppSourceResult InvalidManifest(AppSlug slug, IReadOnlyList<AppManifestError> errors)public static AppSourceResult IdentityMismatch(AppSlug slug, AppSlug declared)public static AppSourceResult DuplicateRegistration(AppSlug slug)public static AppSourceResult UnknownSource(AppSlug slug, string sourceKey)public static AppSourceResult Ambiguous(AppSlug slug, IReadOnlyList<string> sourceKeys)public static AppSourceResult SourceMisconfigured(AppSlug slug, IReadOnlyList<AppManifestError> errors)
Orleans.Lattice.Apps.AppSourceStatus
Source (line 4).
public enum AppSourceStatus
Resolved = 0NotFound = 1VersionMismatch = 2InvalidManifest = 3IdentityMismatch = 4DuplicateRegistration = 5Ambiguous = 6SourceMisconfigured = 7
Orleans.Lattice.Apps.AppSubscriptionCompilation
Source (line 7).
public sealed class AppSubscriptionCompilation
public bool Succeededpublic IReadOnlyList<AppSubscriptionContext> Subscriptions { get; }public IReadOnlyList<AppSubscriptionDenial> Denials { get; }
Orleans.Lattice.Apps.AppSubscriptionCompiler
Source (line 37).
public static class AppSubscriptionCompiler
public static AppSubscriptionCompilation Compile( AppManifest manifest, TenantId tenant, AppCapabilityCeiling ceiling, AppTreeOwnerSnapshot? owners = null)
Orleans.Lattice.Apps.AppSubscriptionContext
Source (line 9).
public sealed class AppSubscriptionContext
public TenantId Tenant { get; }public AppSlug App { get; }public string Name { get; }public AppSlug ObservedApp { get; }public string Tree { get; }public string LocalTreeId { get; }public string TreeId { get; }public string? KeyPrefix { get; }public bool IsCrossApp
Orleans.Lattice.Apps.AppSubscriptionDeclaration
Source (line 4).
public sealed record AppSubscriptionDeclaration
public required string Name { get; init; }public required string Tree { get; init; }public AppSlug? App { get; init; }public string? KeyPrefix { get; init; }
Orleans.Lattice.Apps.AppSubscriptionDenial
Source (line 16).
public sealed record AppSubscriptionDenial(string SubscriptionName, AppSlug ObservedApp, LatticeScope Scope, string Message)
Primary constructor / positional members: (string SubscriptionName, AppSlug ObservedApp, LatticeScope Scope, string Message)
Orleans.Lattice.Apps.AppTreeDeclaration
Source (line 4).
public sealed record AppTreeDeclaration
public required string Name { get; init; }public int? ShardCount { get; init; }public int? VirtualShardCount { get; init; }public int? MaxLeafKeys { get; init; }public int? MaxInternalChildren { get; init; }public int? WalPartitions { get; init; }public TimeSpan? SoftDeleteDuration { get; init; }public bool Rebuildable { get; init; }public string? AdoptedTreeId { get; init; }
Orleans.Lattice.Apps.AppTreeOwnerSnapshot
Source (line 13).
public sealed class AppTreeOwnerSnapshot
public static AppTreeOwnerSnapshot None { get; }public int Countpublic static AppTreeOwnerSnapshot Create(IEnumerable<KeyValuePair<string, AppSlug>> owners)public bool IsOwnedBy(string effectiveTreeId, AppSlug app)
Orleans.Lattice.Apps.AppTreeOwnershipConflict
Source (line 13).
public sealed record AppTreeOwnershipConflict( string TreeName, AppTreeOwnershipConflictReason Reason, AppSlug? OwningApp, string Message)
Primary constructor / positional members: ( string TreeName, AppTreeOwnershipConflictReason Reason, AppSlug? OwningApp, string Message)
Orleans.Lattice.Apps.AppTreeOwnershipConflictReason
Source (line 4).
public enum AppTreeOwnershipConflictReason
None = 0OwnedByAnotherApp = 1PreExistingUnownedTree = 2DerivedTree = 3AliasTarget = 4
Orleans.Lattice.Apps.AppUiAsset
Source (line 4).
public sealed record AppUiAsset
public required string Path { get; init; }public required string MediaType { get; init; }public required string Digest { get; init; }
Orleans.Lattice.Apps.AppUiBridgeDeclaration
Source (line 4).
public sealed record AppUiBridgeDeclaration
public required string Operation { get; init; }public string[]? Trees { get; init; }
Orleans.Lattice.Apps.AppUiBridgeGrant
Source (line 8).
public readonly record struct AppUiBridgeGrant
public AppUiBridgeGrant(string operation, string? tree = null)public string Operation { get; init; }public string? Tree { get; init; }
Orleans.Lattice.Apps.AppUiBridgeOperations
Source (line 12).
public static class AppUiBridgeOperations
public const string ContextReadpublic const string ContextUserpublic const string DataReadpublic const string DataWritepublic const string DataDeletepublic const string NavSyncpublic const string UiNotifypublic static IReadOnlySet<string> All { get; }public static bool IsKnown(string? operation)public static bool IsDataOperation(string? operation)
Orleans.Lattice.Apps.AppUiBridgeRequest
Source (line 14).
public sealed class AppUiBridgeRequest : IEquatable<AppUiBridgeRequest>
public static AppUiBridgeRequest Empty { get; }public ImmutableArray<AppUiBridgeGrant> Grants { get; private init; }public bool IsEmptypublic static AppUiBridgeRequest Create(IEnumerable<AppUiBridgeGrant> grants)public static AppUiBridgeRequest FromManifest(AppManifest manifest)public bool Covers(AppUiBridgeGrant grant)public AppUiBridgeRequest AddedRelativeTo(AppUiBridgeRequest consented)public bool Equals(AppUiBridgeRequest? other)public override bool Equals(object? obj)public override int GetHashCode()
Orleans.Lattice.Apps.AppUiBundle
Source (line 12).
public static class AppUiBundle
public const int MaxAssetspublic const int MaxAssetBytespublic const int MaxBundleBytespublic const int MaxPathLengthpublic static IReadOnlySet<string> AllowedMediaTypes { get; }public static bool IsValidPath(string? path)public static bool IsValidDigest(string? digest)public static string ComputeBundleDigest(IReadOnlyCollection<AppUiAsset> assets)
Orleans.Lattice.Apps.AppUiDeclaration
Source (line 8).
public sealed record AppUiDeclaration
public required string Entry { get; init; }public string[]? Styles { get; init; }public AppUiScript[]? Scripts { get; init; }public required AppUiAsset[] Assets { get; init; }public required string BundleDigest { get; init; }public AppUiBridgeDeclaration[]? Bridge { get; init; }public int MinProtocol { get; init; }
Orleans.Lattice.Apps.AppUiProtocol
Source (line 4).
public static class AppUiProtocol
public const int Current
Orleans.Lattice.Apps.AppUiScript
Source (line 9).
public sealed record AppUiScript
public required string Path { get; init; }public bool Module { get; init; }
Orleans.Lattice.Apps.AppVersion
Source (line 6).
public readonly record struct AppVersion
public string Value { get; private init; }public static AppVersion Parse(string value)public static bool TryParse(string? value, out AppVersion version)public override string ToString()
Orleans.Lattice.Apps.CompiledAppRegistrySnapshot
Source (line 11).
public sealed class CompiledAppRegistrySnapshot
public static CompiledAppRegistrySnapshot Empty { get; }public long Epoch { get; }public IReadOnlyList<AppRegistryRecord> Records { get; }public int Countpublic bool TryGet(TenantId tenant, AppSlug slug, out AppRegistryRecord? record)public IReadOnlyList<AppRegistryRecord> GetTenantApps(TenantId tenant)public IReadOnlyList<AppRegistryRecord> GetEnabledTenantApps(TenantId tenant)
Orleans.Lattice.Apps.IAppActivationHandle
Source (line 7).
public interface IAppActivationHandle
AppIdentity Identity { get; }ValueTask<AppActivationResult> ActivateAsync(CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.IAppActivationPipeline
Source (line 27).
public interface IAppActivationPipeline
Task<AppActivationOutcome> EnableAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppActivationOutcome> DisableAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppActivationOutcome> UninstallAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppActivationOutcome> ReconcileAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppActivationStatus?> GetStatusAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppActivationOperation?> GetRunningOperationAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.IAppChangeFeedHandler
Source (line 25).
public interface IAppChangeFeedHandler
Task HandleAsync(AppSubscriptionContext subscription, LatticeMutation mutation, CancellationToken cancellationToken)
Orleans.Lattice.Apps.IAppRegistry
Source (line 42).
public interface IAppRegistry
Task<AppRegistryRecord?> GetAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)IAsyncEnumerable<AppRegistryRecord> ListAsync(CancellationToken cancellationToken = default)IAsyncEnumerable<AppRegistryRecord> ListForTenantAsync(TenantId tenant, CancellationToken cancellationToken = default)Task<IReadOnlyList<AppTreeOwnershipConflict>> GetTreeOwnershipConflictsAsync( TenantId tenant, AppManifest manifest, AppProvenance provenance, CancellationToken cancellationToken = default)Task<AppRegistryTransitionResult> InstallAsync(AppRegistryInstallRequest request, CancellationToken cancellationToken = default)Task<AppRegistryTransitionResult> UpgradeAsync(AppRegistryInstallRequest request, CancellationToken cancellationToken = default)Task<AppRegistryTransitionResult> EnableAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppRegistryTransitionResult> DisableAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)Task<AppRegistryTransitionResult> UninstallAsync(TenantId tenant, AppSlug slug, CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.IAppRegistryProjection
Source (line 13).
public interface IAppRegistryProjection
long CurrentEpoch { get; }CompiledAppRegistrySnapshot Current { get; }Task EnsureWarmAsync(CancellationToken cancellationToken = default)Task EnsureCurrentAsync(CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.IAppSource
Source (line 48).
public interface IAppSource
ValueTask<AppSourceResult> ResolveAsync( AppSlug slug, AppVersion? version = null, CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.InImageAppRegistration
Source (line 10).
public sealed record InImageAppRegistration
public InImageAppRegistration(AppSlug slug, Assembly assembly, string manifestResourceName)public AppSlug Slug { get; }public Assembly Assembly { get; }public string ManifestResourceName { get; }public string Publisher { get; init; }public string AssetResourcePrefix { get; init; }
Orleans.Lattice.Apps.InImageAppSource
Source (line 37).
public sealed class InImageAppSource : IAppCatalogSource
public const string SourceKeypublic const int MaxAssetBytespublic InImageAppSource(IOptions<InImageAppSourceOptions> options)public AppSourceDescriptor Descriptorpublic ValueTask<AppSourceResult> ResolveAsync( AppSlug slug, AppVersion? version = null, CancellationToken cancellationToken = default)public ValueTask<AppSourcePage> ListAsync(AppSourceQuery query, CancellationToken cancellationToken = default)public ValueTask<AppAssetResult> OpenAssetAsync( AppSlug slug, AppVersion version, string path, string expectedSha256, CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.InImageAppSourceOptions
Source (line 9).
public sealed class InImageAppSourceOptions
public IList<InImageAppRegistration> Registrations { get; }public InImageAppSourceOptions Register(AppSlug slug, Assembly assembly, string manifestResourceName)
Orleans.Lattice.Apps.LatticeAppsOptions
Source (line 7).
public sealed class LatticeAppsOptions
public static readonly TimeSpan DefaultStartupRetryDelaypublic static readonly TimeSpan DefaultStartupRetryMaxDelaypublic bool ReconcileOnStartup { get; set; }public TimeSpan StartupRetryDelay { get; set; }public TimeSpan StartupRetryMaxDelay { get; set; }
Orleans.Lattice.Apps.LatticeAppsServiceCollectionExtensions
Source (line 9).
public static partial class LatticeAppsServiceCollectionExtensions
public static ISiloBuilder AddLatticeAppSource<TSource>(this ISiloBuilder builder) where TSource : class, IAppCatalogSourcepublic static IServiceCollection AddLatticeAppSource<TSource>(this IServiceCollection services) where TSource : class, IAppCatalogSourcepublic static ISiloBuilder AddLatticeAppSource(this ISiloBuilder builder, IAppCatalogSource instance)public static IServiceCollection AddLatticeAppSource(this IServiceCollection services, IAppCatalogSource instance)public static ISiloBuilder AddLatticeApp( this ISiloBuilder builder, string slug, Assembly assembly, string manifestResourceName, string assetResourcePrefix)public static IServiceCollection AddLatticeApp( this IServiceCollection services, string slug, Assembly assembly, string manifestResourceName, string assetResourcePrefix)
Source (line 5).
public static partial class LatticeAppsServiceCollectionExtensions
public static IServiceCollection AddLatticeAppSubscriptionHandler<THandler>( this IServiceCollection services, AppSlug app, string subscriptionName) where THandler : class, IAppChangeFeedHandlerpublic static IServiceCollection AddLatticeAppSubscriptionHandler( this IServiceCollection services, AppSlug app, string subscriptionName, Func<IServiceProvider, IAppChangeFeedHandler> factory)
Source (line 17).
public static partial class LatticeAppsServiceCollectionExtensions
public static ISiloBuilder AddLatticeApps(this ISiloBuilder builder, Action<LatticeAppsOptions>? configure = null)public static IServiceCollection AddLatticeApps(this IServiceCollection services, Action<LatticeAppsOptions>? configure = null)public static ISiloBuilder AddLatticeApp(this ISiloBuilder builder, string slug, Assembly assembly, string manifestResourceName)public static IServiceCollection AddLatticeApp(this IServiceCollection services, string slug, Assembly assembly, string manifestResourceName)
Orleans.Lattice.Apps.Sources.AppAssetResult
Source (line 11).
public sealed class AppAssetResult
public const int Sha256HexLengthpublic AppAssetStatus Status { get; }public bool IsOpenedpublic string Path { get; }public ReadOnlyMemory<byte> Content { get; }public string? MediaType { get; }public string? ActualSha256 { get; }public IReadOnlyList<AppManifestError> Errors { get; }public static AppAssetResult Verify(string path, ReadOnlyMemory<byte> content, string mediaType, string expectedSha256)public static AppAssetResult NotFound(string path)public static AppAssetResult NotAvailable(string path, string reason)public static bool IsSha256Hex(string? value)
Orleans.Lattice.Apps.Sources.AppAssetStatus
Source (line 4).
public enum AppAssetStatus
Opened = 0NotFound = 1NotAvailable = 2DigestMismatch = 3
Orleans.Lattice.Apps.Sources.AppSourceCapabilities
Source (line 4).
public enum AppSourceCapabilities
None = 0Enumerate = 1Search = 2MultipleVersions = 4RequiresAcquisition = 8
Orleans.Lattice.Apps.Sources.AppSourceDescriptor
Source (line 8).
public sealed record AppSourceDescriptor
public AppSourceDescriptor(string key, string displayName, AppSourceKind kind, AppSourceCapabilities capabilities)public string Key { get; }public string DisplayName { get; }public AppSourceKind Kind { get; }public AppSourceCapabilities Capabilities { get; }public bool Supports(AppSourceCapabilities capability)public static bool IsValidKey(string? key)
Orleans.Lattice.Apps.Sources.AppSourceEntry
Source (line 13).
public sealed class AppSourceEntry
public AppSlug Slug { get; }public bool IsAvailablepublic IReadOnlyList<AppVersion> Versions { get; }public AppManifest? Manifest { get; }public AppProvenance? Provenance { get; }public IReadOnlyList<AppManifestError> Errors { get; }public static AppSourceEntry Available(IReadOnlyList<AppVersion> versions, AppManifest manifest, AppProvenance provenance)public static AppSourceEntry Unavailable(AppSlug slug, IReadOnlyList<AppManifestError> errors)
Orleans.Lattice.Apps.Sources.AppSourceKind
Source (line 4).
public enum AppSourceKind
Static = 0Dynamic = 1
Orleans.Lattice.Apps.Sources.AppSourcePage
Source (line 4).
public sealed class AppSourcePage
public static AppSourcePage Empty { get; }public IReadOnlyList<AppSourceEntry> Entries { get; }public string? Continuation { get; }public bool HasMorepublic static AppSourcePage Create(IReadOnlyList<AppSourceEntry> entries, string? continuation)
Orleans.Lattice.Apps.Sources.AppSourceQuery
Source (line 8).
public sealed record AppSourceQuery
public const int MinPageSizepublic const int MaxPageSizepublic const int DefaultPageSizepublic static AppSourceQuery Default { get; }public string? Text { get; init; }public int PageSize { get; init; }public string? Continuation { get; init; }
Orleans.Lattice.Apps.Sources.AppSourceSet
Source (line 28).
public sealed class AppSourceSet : IAppSource
public AppSourceSet(IEnumerable<IAppCatalogSource> sources)public IReadOnlyList<IAppCatalogSource> Sources { get; }public IReadOnlyList<AppManifestError> CompositionErrors { get; }public bool IsValidpublic bool TryGet(string key, out IAppCatalogSource? source)public ValueTask<AppSourceResult> ResolveAsync( AppSlug slug, AppVersion? version = null, string? sourceKey = null, CancellationToken cancellationToken = default)
Orleans.Lattice.Apps.Sources.IAppCatalogSource
Source (line 49).
public interface IAppCatalogSource : IAppSource
AppSourceDescriptor Descriptor { get; }ValueTask<AppSourcePage> ListAsync(AppSourceQuery query, CancellationToken cancellationToken = default)ValueTask<AppAssetResult> OpenAssetAsync( AppSlug slug, AppVersion version, string path, string expectedSha256, CancellationToken cancellationToken = default)