Nextended.Aspire — API-Referenz
Die vollständige öffentliche Oberfläche von Nextended.Aspire, erzeugt aus der gebauten Assembly.
Generiert
Diese Seite wird von tools/ApiRef aus der kompilierten Assembly erzeugt — sie zeigt auch Member ohne XML-Kommentar und kann daher nicht vom Code abweichen. Nicht von Hand bearbeiten.
Nextended.Aspire
DevCertHostingExtensions
static class
Keine Beschreibung.
DistributedApplicationBuilderExtensions
static class
Extension methods for IResourceBuilder1` that provide conditional operations such as waiting for dependencies and adding references or environment variables to a resource.
DistributedApplicationExtensions
static class
Keine Beschreibung.
DockerHelper
class
Keine Beschreibung.
Konstruktoren
DockerHelper()
Methoden
EnsureDockerIsRunning() : voidIsDockerInstalled() : boolIsDockerRunning() : boolStartDocker() : void
GithubRepositoryExtensions
static class
Runs any GitHub (or other git) repository as an Aspire container resource: the repo is cloned/updated on the host at build time and built via its own — or a generated — Dockerfile.
Methoden
EnsureGitCheckout(string repository, string gitRef, string dir) : void
Clonesrepository@gitRefintodir(shallow), or refreshes an existing checkout to that ref. A failed refresh (offline) keeps the existing checkout; the initial clone is required and throws with a clear message.
GithubRepositoryOptions
class
Options for AddGithubRepository / WithGithubSource``1.
Konstruktoren
GithubRepositoryOptions()
Eigenschaften
CheckoutDirectory : string { get; set; }
Directory the repository is cloned into. Default{AppHostDirectory}/obj/github/{resourceName}. The checkout itself lives in asrcsubfolder; a generated Dockerfile is written next to it.ContextSubPath : string { get; set; }
Subdirectory of the checkout to use as the docker build context. Default: repo root.DockerfileContent : string { get; set; }
Content of a Dockerfile to generate next to the checkout (for repos that ship none). Line endings are normalized to LF. Whennull, the repo's own Dockerfile is used (seeDockerfilePath).DockerfilePath : string { get; set; }
Path of the Dockerfile inside the checkout, relative to the repo root — only used whenDockerfileContentisnull. Default: the builder's own default (Dockerfilein the context).GitRef : string { get; set; }
Git branch/tag/commit-ish to check out. Defaultmain. Pin a tag for reproducible builds.
Projects
Nextended_Aspire
class
Metadata for the Aspire AppHost project.
Eigenschaften
ProjectPath : string { get; }
The path to the Aspire Host project.