string Value { get; }
Source
Gets the canonical identifier value.
A validated logical identifier used by deployment resources and bindings.
string Value { get; }
Source
Gets the canonical identifier value.
An immutable container image reference pinned to a SHA-256 digest.
string Value { get; }
Source
Gets the full immutable image identity.
A full lowercase source-control commit used only for traceability.
string Value { get; }
Source
Gets the full source revision.
Defines explicit, provider-neutral run-to-completion bounds.
int Tasks { get; }
Source
Gets the number of tasks.
int Parallelism { get; }
Source
Gets maximum concurrent tasks.
int Retries { get; }
Source
Gets the retry count.
TimeSpan Timeout { get; }
Source
Gets the task timeout.
Describes a logical secret reference without carrying or resolving its value.
DeploymentLogicalId Id { get; }
Source
Gets the logical binding id.
DeploymentLogicalId Parameter { get; }
Source
Gets the logical Aspire parameter id; its value must never be evaluated by deployment publishing.
string EnvironmentVariable { get; }
Source
Gets the environment variable used for reference delivery.
SecretDeliveryKind Delivery { get; }
Source
Gets the only secret-delivery mode supported in v1.
Describes a relational database requirement and its connection-secret reference.
DeploymentLogicalId Id { get; }
Source
Gets the logical database id.
string ConfigurationKey { get; }
Source
Gets the application configuration key.
DeploymentLogicalId ConnectionSecret { get; }
Source
Gets the referenced logical secret binding.
bool RequireUnixSocket { get; }
Source
Gets whether Unix-socket delivery is required.
bool MigrationOwner { get; }
Source
Gets whether the job owns migrations for this database.
Portable intent for one explicitly bounded migration job.
DeploymentLogicalId Id { get; }
Source
Gets the logical job id.
DeploymentPhase Phase { get; }
Source
Gets the deployment phase.
ImmutableImageReference Image { get; }
Source
Gets the immutable image.
string Command { get; }
Source
Gets the executable command.
IReadOnlyList<string> Arguments { get; }
Source
Gets ordered command arguments.
DeploymentExecutionPolicy Execution { get; }
Source
Gets execution bounds.
SecretBinding ConnectionSecret { get; }
Source
Gets the connection-secret reference.
DatabaseBinding Database { get; }
Source
Gets the database binding.
DeploymentLogicalId ServiceIdentity { get; }
Source
Gets the logical runtime service identity.
IReadOnlyList<DeploymentCapability> RequiredCapabilities { get; }
Source
Gets required target capabilities in canonical order.
bool RequirePrivateNetwork { get; }
Source
Gets whether private networking is required.
IReadOnlyDictionary<string, string> Environment { get; }
Source
Gets sorted artifact-visible environment settings after secret-shaped names are rejected.
The schema-versioned provider-neutral deployment artifact.
string Schema { get; }
Source
Gets the schema identifier.
string SchemaVersion { get; }
Source
Gets the schema version.
string Environment { get; }
Source
Gets the Aspire environment.
SourceRevision SourceRevision { get; }
Source
Gets the explicit source revision.
IReadOnlyList<MigrationJobIntent> MigrationJobs { get; }
Source
Gets migration jobs in canonical logical-id order.
A stable safe deployment diagnostic with problem, cause, fix, and documentation.
CodeStable `ASDEPLOY` code.ProblemSafe one-line failure description.CauseSafe explanation without secret values or raw provider output.FixConcrete remediation.DocumentationVersioned troubleshooting link.DeploymentDiagnostic Create(string code, string problem, string cause, string fix)
Source
Creates a diagnostic linked to the deployment troubleshooting reference.
Thrown when deployment intent or provider inputs violate a stable deployment contract.
DeploymentDiagnostic Diagnostic { get; }
Source
Gets the structured diagnostic.
Serializes portable deployment intent to deterministic UTF-8 JSON and hashes artifact bytes.
byte[] Serialize<T>(T value)
Source
Serializes a value as UTF-8 without a BOM, with stable indentation and one trailing LF.
string Hash(ReadOnlySpan<byte> bytes)
Source
Computes a lowercase SHA-256 hash for exact artifact bytes.
A named deterministic deployment artifact whose content cannot be mutated after creation.
DeploymentArtifact Create(string fileName, byte[] content)
Source
Creates an artifact and computes its content hash.
fileNamePortable single-segment artifact name.contentExact bytes copied into the immutable artifact.An artifact with defensively copied content and its lowercase SHA-256 hash.
string FileName { get; }
Source
Gets the safe single-segment artifact file name.
byte[] Content { get; }
Source
Gets a defensive copy of the exact artifact bytes.
string Sha256 { get; }
Source
Gets the lowercase SHA-256 hash of the exact artifact bytes.
Writes a complete target-owned artifact directory through a staged same-parent directory swap.
The writer refuses non-empty directories that do not contain its ownership marker and refuses unexpected files in an owned directory. It stages every artifact before replacing the directory, so validation, serialization, and cancellation failures do not expose a partial new bundle. The marker is internal bookkeeping and is not a release evidence artifact.
Task WriteAsync(string outputDirectory, string target, IEnumerable<DeploymentArtifact> artifacts, CancellationToken cancellationToken = default)
Source
Writes a complete deterministic artifact bundle.
outputDirectoryDedicated output directory owned by one deployment target.targetStable target identifier stored in the ownership marker.artifactsComplete artifact set; file names must be unique.cancellationTokenCancels before the staged directory replaces the current bundle.DeploymentValidationExceptionThrown for unsafe paths, non-owned files, or duplicate names.Inputs passed to an Aspire-independent deployment target renderer.
IntentValidated provider-neutral deployment intent.BindingProfilePathResolved provider binding-profile path.OutputDirectoryDedicated target output directory.GeneratorVersionAppSurface generator package version recorded in evidence.BindingProfileRootOptional trusted authoring-host root used to reject symlink escapes before reading.Deterministic artifacts produced by a deployment target.
TargetStable target identifier.ArtifactsComplete deterministic artifact set.Inputs passed to a read-only deployment verifier.
RenderResultValidated render result to verify.ParityModeShadow or owned comparison policy.Result of read-only deployment verification.
IsMatchWhether all required fields and public-principal checks matched.ComparedFieldsNumber of normalized field checks performed.DiagnosticsSafe drift diagnostics.AuthorizationStatusExplicit limitation or authorization evidence status.Compiles portable deployment intent and optionally verifies deployed state without mutation.
Task<DeploymentRenderResult> RenderAsync(DeploymentRenderRequest request, CancellationToken cancellationToken = default)
Source
Renders deterministic artifacts without cloud calls or infrastructure mutation.
Task<DeploymentVerifyResult> VerifyAsync(DeploymentVerifyRequest request, CancellationToken cancellationToken = default)
Source
Performs read-only deployed-state verification; it must not accept or execute a job.
string Name { get; }
Source
Gets the stable target identifier.
IReadOnlySet<DeploymentCapability> Capabilities { get; }
Source
Gets target capabilities used for fail-fast intent validation.
Identifies the phase in which a deployment resource participates.
Identifies a capability that a deployment target must support.
Identifies whether parity is evaluated before or after the generated configuration becomes authoritative.
Identifies how a secret reference is delivered to a workload.