# Aspire.Hosting

- Module: `Aspire.Hosting`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `247`
- Types: `160`

## Handles

- [AfterPublishEvent](/reference/api/go/aspire.hosting/afterpublishevent.md) -- `handle` - 2 members -- This event is published after the distributed application is published.
- [AfterResourcesCreatedEvent](/reference/api/go/aspire.hosting/afterresourcescreatedevent.md) -- `handle` - 2 members -- This event is published after all resources have been created.
- [AspireStore](/reference/api/go/aspire.hosting/aspirestore.md) -- `interface` - 2 members -- Represents a store for managing files in the Aspire hosting environment that can be reused across runs.
- [BeforePublishEvent](/reference/api/go/aspire.hosting/beforepublishevent.md) -- `handle` - 2 members -- This event is published before the distributed application is published.
- [BeforeResourceStartedEvent](/reference/api/go/aspire.hosting/beforeresourcestartedevent.md) -- `handle` - 2 members -- This event is raised by orchestrators before they have started a new resource.
- [BeforeStartEvent](/reference/api/go/aspire.hosting/beforestartevent.md) -- `handle` - 2 members -- This event is published before the application starts.
- [CommandLineArgsCallbackContext](/reference/api/go/aspire.hosting/commandlineargscallbackcontext.md) -- `handle` - 4 members -- Represents a callback context for the list of command-line arguments associated with an executable resource.
- [CommandLineArgsEditor](/reference/api/go/aspire.hosting/commandlineargseditor.md) -- `handle` - 2 members -- Provides an ATS-first editor for command-line arguments within polyglot callbacks.
- [ComputeEnvironmentResource](/reference/api/go/aspire.hosting/computeenvironmentresource.md) -- `interface` `marker` - 0 members
- [Configuration](/reference/api/go/aspire.hosting/configuration.md) -- `interface` - 5 members
- [ConfigurationSection](/reference/api/go/aspire.hosting/configurationsection.md) -- `interface` `marker` - 0 members
- [ConnectionStringAvailableEvent](/reference/api/go/aspire.hosting/connectionstringavailableevent.md) -- `handle` - 2 members -- The `ConnectionStringAvailableEvent` is raised when a connection string becomes available for a resource.
- [ContainerBuildOptionsCallbackContext](/reference/api/go/aspire.hosting/containerbuildoptionscallbackcontext.md) -- `handle` - 11 members -- Context for configuring container build options via a callback.
- [ContainerFileSystemCallbackContext](/reference/api/go/aspire.hosting/containerfilesystemcallbackcontext.md) -- `handle` - 5 members -- Represents the context for a `ContainerFileSystemCallbackAnnotation` callback.
- [ContainerFileSystemItem](/reference/api/go/aspire.hosting/containerfilesystemitem.md) -- `handle` - 0 members -- Represents a base class for file system entries in a container.
- [ContainerImagePushOptions](/reference/api/go/aspire.hosting/containerimagepushoptions.md) -- `handle` - 2 members -- Represents options for pushing container images to a registry.
- [ContainerImagePushOptionsCallbackContext](/reference/api/go/aspire.hosting/containerimagepushoptionscallbackcontext.md) -- `handle` - 3 members -- Provides context information for container image push options callbacks.
- [ContainerImageReference](/reference/api/go/aspire.hosting/containerimagereference.md) -- `handle` - 2 members -- Represents the fully‑qualified container image reference that should be deployed.
- [ContainerMountAnnotation](/reference/api/go/aspire.hosting/containermountannotation.md) -- `handle` - 4 members -- Represents a mount annotation for a container resource.
- [ContainerPortReference](/reference/api/go/aspire.hosting/containerportreference.md) -- `handle` - 2 members -- Represents a TCP/UDP port that a container can expose.
- [ContainerRegistryResource](/reference/api/go/aspire.hosting/containerregistryresource.md) -- `handle` - 0 members
- [ContainerResource](/reference/api/go/aspire.hosting/containerresource.md) -- `handle` - 22 members -- A resource that represents a specified container.
- [CSharpAppResource](/reference/api/go/aspire.hosting/csharpappresource.md) -- `handle` - 0 members
- [DistributedApplication](/reference/api/go/aspire.hosting/distributedapplication.md) -- `handle` - 1 members -- Represents a distributed application that implements the `IHost` and `IAsyncDisposable` interfaces.
- [DistributedApplicationBuilder](/reference/api/go/aspire.hosting/distributedapplicationbuilder.md) -- `interface` - 30 members -- A builder for creating instances of `DistributedApplication`.
- [DistributedApplicationEvent](/reference/api/go/aspire.hosting/distributedapplicationevent.md) -- `interface` `marker` - 0 members -- Represents an event that is published during the lifecycle of the AppHost.
- [DistributedApplicationEventing](/reference/api/go/aspire.hosting/distributedapplicationeventing.md) -- `interface` - 1 members -- Supports publishing and subscribing to events which are executed during the AppHost lifecycle.
- [DistributedApplicationEventSubscription](/reference/api/go/aspire.hosting/distributedapplicationeventsubscription.md) -- `handle` - 0 members -- Represents a subscription to an event that is published during the lifecycle of the AppHost.
- [DistributedApplicationExecutionContext](/reference/api/go/aspire.hosting/distributedapplicationexecutioncontext.md) -- `handle` - 7 members -- Exposes the global contextual information for this invocation of the AppHost.
- [DistributedApplicationExecutionContextOptions](/reference/api/go/aspire.hosting/distributedapplicationexecutioncontextoptions.md) -- `handle` - 0 members -- Configuration options and references that need to be exposed to the `DistributedApplicationExecutionContext`.
- [DistributedApplicationModel](/reference/api/go/aspire.hosting/distributedapplicationmodel.md) -- `handle` - 2 members -- Represents a distributed application.
- [DistributedApplicationPipeline](/reference/api/go/aspire.hosting/distributedapplicationpipeline.md) -- `interface` - 3 members -- Represents a pipeline for executing deployment steps in a distributed application.
- [DistributedApplicationResourceEvent](/reference/api/go/aspire.hosting/distributedapplicationresourceevent.md) -- `interface` `marker` - 0 members -- Represents an event that is published during the lifecycle of the AppHost for a specific resource.
- [DistributedApplicationResourceEventSubscription](/reference/api/go/aspire.hosting/distributedapplicationresourceeventsubscription.md) -- `handle` - 0 members -- Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.
- [DockerfileBuilder](/reference/api/go/aspire.hosting/dockerfilebuilder.md) -- `handle` - 3 members -- Builder for creating Dockerfiles programmatically.
- [DockerfileBuilderCallbackContext](/reference/api/go/aspire.hosting/dockerfilebuildercallbackcontext.md) -- `handle` - 4 members -- Provides context information for Dockerfile build callbacks.
- [DockerfileFactoryContext](/reference/api/go/aspire.hosting/dockerfilefactorycontext.md) -- `handle` - 1 members -- Provides context for Dockerfile factory functions.
- [DockerfileStage](/reference/api/go/aspire.hosting/dockerfilestage.md) -- `handle` - 14 members -- Represents a stage within a multi-stage Dockerfile.
- [DotnetProgramResource](/reference/api/go/aspire.hosting/dotnetprogramresource.md) -- `interface` `marker` - 0 members -- Represents a resource backed by a .NET program, such as a project file or a file-based app.
- [DotnetToolResource](/reference/api/go/aspire.hosting/dotnettoolresource.md) -- `handle` - 6 members
- [EndpointReference](/reference/api/go/aspire.hosting/endpointreference.md) -- `handle` - 20 members -- Represents an endpoint reference for a resource with endpoints.
- [EndpointReferenceExpression](/reference/api/go/aspire.hosting/endpointreferenceexpression.md) -- `handle` - 3 members -- Represents a property expression for an endpoint reference.
- [EndpointUpdateContext](/reference/api/go/aspire.hosting/endpointupdatecontext.md) -- `handle` - 11 members -- Provides a mutable callback context for updating an endpoint in polyglot AppHosts.
- [EnvironmentCallbackContext](/reference/api/go/aspire.hosting/environmentcallbackcontext.md) -- `handle` - 4 members -- Represents a callback context for environment variables associated with a publisher.
- [EnvironmentEditor](/reference/api/go/aspire.hosting/environmenteditor.md) -- `handle` - 1 members -- Provides an ATS-first editor for environment variables within polyglot callbacks.
- [EventingSubscriberRegistrationContext](/reference/api/go/aspire.hosting/eventingsubscriberregistrationcontext.md) -- `handle` - 6 members -- Context passed to ATS-friendly eventing subscriber registrations.
- [ExecutableResource](/reference/api/go/aspire.hosting/executableresource.md) -- `handle` - 5 members -- A resource that represents a specified executable process.
- [ExecuteCommandContext](/reference/api/go/aspire.hosting/executecommandcontext.md) -- `handle` - 5 members -- Context for `ResourceCommandAnnotation.ExecuteCommand`.
- [ExecutionConfigurationBuilder](/reference/api/go/aspire.hosting/executionconfigurationbuilder.md) -- `interface` - 5 members -- Builder for gathering and resolving the execution configuration (arguments and environment variables) for a specific resource.
- [ExecutionConfigurationResult](/reference/api/go/aspire.hosting/executionconfigurationresult.md) -- `interface` - 2 members -- Configuration (arguments and environment variables) to apply to a specific resource.
- [ExpressionValue](/reference/api/go/aspire.hosting/expressionvalue.md) -- `interface` `marker` - 0 members -- Represents a value that provides both a runtime value and a manifest expression.
- [ExternalServiceResource](/reference/api/go/aspire.hosting/externalserviceresource.md) -- `handle` - 1 members
- [HostEnvironment](/reference/api/go/aspire.hosting/hostenvironment.md) -- `interface` - 4 members
- [HttpCommandPrepareRequestContext](/reference/api/go/aspire.hosting/httpcommandpreparerequestcontext.md) -- `handle` - 4 members -- Provides context for HTTP command prepare-request callbacks in polyglot AppHosts.
- [HttpsCertificateConfigurationCallbackAnnotationContext](/reference/api/go/aspire.hosting/httpscertificateconfigurationcallbackannotationcontext.md) -- `handle` - 9 members -- Context provided to a `HttpsCertificateConfigurationCallbackAnnotation` callback.
- [HttpsEndpointUpdateCallbackContext](/reference/api/go/aspire.hosting/httpsendpointupdatecallbackcontext.md) -- `handle` - 4 members -- Context provided to the callback of `SubscribeHttpsEndpointsUpdate` when an HTTPS certificate is determined to be available for the resource.
- [IComputeResource](/reference/api/go/aspire.hosting/icomputeresource.md) -- `handle` - 4 members
- [IContainerFilesDestinationResource](/reference/api/go/aspire.hosting/icontainerfilesdestinationresource.md) -- `handle` - 1 members
- [InitializeResourceEvent](/reference/api/go/aspire.hosting/initializeresourceevent.md) -- `handle` - 5 members -- This event is raised by orchestrators to signal to resources that they should initialize themselves.
- [InputsDialogValidationContext](/reference/api/go/aspire.hosting/inputsdialogvalidationcontext.md) -- `handle` - 4 members -- Represents the context for validating inputs in an inputs dialog interaction.
- [InputsInteractionResult](/reference/api/go/aspire.hosting/inputsinteractionresult.md) -- `handle` - 2 members -- The result of a multi-input interaction prompt.
- [InteractionInputBuilder](/reference/api/go/aspire.hosting/interactioninputbuilder.md) -- `handle` - 4 members -- An opaque, server-side builder for an `InteractionInput` used by polyglot AppHosts.
- [InteractionInputCollection](/reference/api/go/aspire.hosting/interactioninputcollection.md) -- `handle` - 5 members -- A collection of interaction inputs that supports both indexed and name-based access.
- [InteractionInputLoadContext](/reference/api/go/aspire.hosting/interactioninputloadcontext.md) -- `handle` - 2 members -- The context passed to a polyglot dynamic-loading callback. Exposes the loading input as a handle and provides read access to the other inputs in the prompt.
- [InteractionLoadingInput](/reference/api/go/aspire.hosting/interactionloadinginput.md) -- `handle` - 3 members -- A handle to the input currently being loaded by a dynamic-loading callback. Mirrors the native `LoadInputContext.Input` by letting callbacks update the live input directly.
- [InteractionService](/reference/api/go/aspire.hosting/interactionservice.md) -- `interface` - 13 members -- A service to interact with the current development environment.
- [LogFacade](/reference/api/go/aspire.hosting/logfacade.md) -- `handle` - 4 members -- Provides a narrow logging surface for polyglot callback contexts.
- [Logger](/reference/api/go/aspire.hosting/logger.md) -- `interface` - 5 members
- [LoggerFactory](/reference/api/go/aspire.hosting/loggerfactory.md) -- `interface` - 1 members
- [ParameterResource](/reference/api/go/aspire.hosting/parameterresource.md) -- `handle` - 6 members -- Represents a parameter resource.
- [PipelineConfigurationContext](/reference/api/go/aspire.hosting/pipelineconfigurationcontext.md) -- `handle` - 3 members -- Provides contextual information for pipeline configuration callbacks.
- [PipelineContext](/reference/api/go/aspire.hosting/pipelinecontext.md) -- `handle` - 6 members -- Provides contextual information and services for the pipeline execution process of a distributed application.
- [PipelineEditor](/reference/api/go/aspire.hosting/pipelineeditor.md) -- `handle` - 2 members -- Provides an ATS-first editor for pipeline configuration callbacks.
- [PipelineStep](/reference/api/go/aspire.hosting/pipelinestep.md) -- `handle` - 8 members -- Represents a step in the deployment pipeline.
- [PipelineStepContext](/reference/api/go/aspire.hosting/pipelinestepcontext.md) -- `handle` - 8 members -- Provides contextual information for a specific pipeline step execution.
- [PipelineStepFactoryContext](/reference/api/go/aspire.hosting/pipelinestepfactorycontext.md) -- `handle` - 2 members -- Provides contextual information for creating pipeline steps from a `PipelineStepAnnotation`.
- [PipelineSummary](/reference/api/go/aspire.hosting/pipelinesummary.md) -- `handle` - 2 members -- Represents pipeline summary information to be displayed after pipeline completion. This is a general-purpose key-value collection that pipeline steps can contribute to.
- [ProgressContext](/reference/api/go/aspire.hosting/progresscontext.md) -- `handle` - 1 members -- Provides context to the work callback of a progress interaction.
- [ProjectResource](/reference/api/go/aspire.hosting/projectresource.md) -- `handle` - 5 members -- A resource that represents a specified .NET project.
- [ProjectResourceOptions](/reference/api/go/aspire.hosting/projectresourceoptions.md) -- `handle` - 3 members -- Various properties to modify the behavior of the project resource.
- [ReferenceExpressionBuilder](/reference/api/go/aspire.hosting/referenceexpressionbuilder.md) -- `handle` - 5 members -- A builder for creating `ReferenceExpression` instances.
- [ReportingStep](/reference/api/go/aspire.hosting/reportingstep.md) -- `interface` - 6 members -- Represents a publishing step, which can contain multiple tasks.
- [ReportingTask](/reference/api/go/aspire.hosting/reportingtask.md) -- `interface` - 4 members -- Represents a publishing task, which belongs to a step.
- [RequiredCommandValidationContext](/reference/api/go/aspire.hosting/requiredcommandvalidationcontext.md) -- `handle` - 5 members -- Provides context for validating a required command.
- [RequiredCommandValidationResult](/reference/api/go/aspire.hosting/requiredcommandvalidationresult.md) -- `handle` - 2 members -- Represents the result of validating a required command.
- [Resource](/reference/api/go/aspire.hosting/resource.md) -- `interface` `marker` - 42 members -- Represents a resource that can be hosted by an application.
- [ResourceCommandService](/reference/api/go/aspire.hosting/resourcecommandservice.md) -- `handle` - 1 members -- A service to execute resource commands.
- [ResourceEndpointsAllocatedEvent](/reference/api/go/aspire.hosting/resourceendpointsallocatedevent.md) -- `handle` - 2 members -- This event is raised by orchestrators to signal to resources that their endpoints have been allocated.
- [ResourceLoggerService](/reference/api/go/aspire.hosting/resourceloggerservice.md) -- `handle` - 2 members -- A service that provides loggers for resources to write to.
- [ResourceNotificationService](/reference/api/go/aspire.hosting/resourcenotificationservice.md) -- `handle` - 6 members -- A service that allows publishing and subscribing to changes in the state of a resource.
- [ResourceReadyEvent](/reference/api/go/aspire.hosting/resourcereadyevent.md) -- `handle` - 2 members -- Event that is raised when a resource initially transitions to a ready state.
- [ResourceStoppedEvent](/reference/api/go/aspire.hosting/resourcestoppedevent.md) -- `handle` - 2 members -- This event is raised after a resource has stopped.
- [ResourceUrlsCallbackContext](/reference/api/go/aspire.hosting/resourceurlscallbackcontext.md) -- `handle` - 5 members -- Represents a callback context for resource URLs.
- [ResourceUrlsEditor](/reference/api/go/aspire.hosting/resourceurlseditor.md) -- `handle` - 3 members -- Provides an ATS-first editor for resource URLs within polyglot callbacks.
- [ResourceWithArgs](/reference/api/go/aspire.hosting/resourcewithargs.md) -- `interface` `marker` - 4 members -- Represents a resource that is associated with commandline arguments.
- [ResourceWithConnectionString](/reference/api/go/aspire.hosting/resourcewithconnectionstring.md) -- `interface` - 3 members -- Represents a resource that has a connection string associated with it.
- [ResourceWithContainerFiles](/reference/api/go/aspire.hosting/resourcewithcontainerfiles.md) -- `interface` - 2 members
- [ResourceWithEndpoints](/reference/api/go/aspire.hosting/resourcewithendpoints.md) -- `interface` `marker` - 15 members -- Represents a resource that has endpoints associated with it.
- [ResourceWithEnvironment](/reference/api/go/aspire.hosting/resourcewithenvironment.md) -- `interface` `marker` - 10 members -- Represents a resource that is associated with an environment.
- [ResourceWithParent](/reference/api/go/aspire.hosting/resourcewithparent.md) -- `interface` `marker` - 0 members -- Represents a resource that has a parent resource.
- [ResourceWithWaitSupport](/reference/api/go/aspire.hosting/resourcewithwaitsupport.md) -- `interface` `marker` - 3 members -- Represents a resource that can wait for other resources to be running, health, and/or completed.
- [ServiceProvider](/reference/api/go/aspire.hosting/serviceprovider.md) -- `interface` - 9 members
- [UpdateCommandStateContext](/reference/api/go/aspire.hosting/updatecommandstatecontext.md) -- `handle` - 2 members -- Context for `ResourceCommandAnnotation.UpdateState`.
- [UserSecretsManager](/reference/api/go/aspire.hosting/usersecretsmanager.md) -- `interface` - 6 members -- Defines an interface for managing user secrets with support for read and write operations.

## DTOs

- [AddContainerOptions](/reference/api/go/aspire.hosting/addcontaineroptions.md) -- `struct` - 2 fields -- Options for configuring a container image in polyglot apphosts.
- [BoolInteractionResult](/reference/api/go/aspire.hosting/boolinteractionresult.md) -- `struct` - 2 fields -- The result of a boolean interaction prompt.
- [CertificateTrustExecutionConfigurationContext](/reference/api/go/aspire.hosting/certificatetrustexecutionconfigurationcontext.md) -- `struct` - 4 fields -- Context for configuring certificate trust configuration properties.
- [CertificateTrustExecutionConfigurationExportData](/reference/api/go/aspire.hosting/certificatetrustexecutionconfigurationexportdata.md) -- `struct` - 3 fields -- ATS-friendly certificate trust data returned from an execution-configuration result.
- [CommandOptions](/reference/api/go/aspire.hosting/commandoptions.md) -- `struct` - 11 fields -- Optional configuration for resource commands.
- [CommandProgressOptions](/reference/api/go/aspire.hosting/commandprogressoptions.md) -- `struct` - 3 fields -- Options for displaying a progress dialog while a command is executing.
- [CommandResultData](/reference/api/go/aspire.hosting/commandresultdata.md) -- `struct` - 3 fields -- Represents a value produced by a command.
- [ContainerFilesOptions](/reference/api/go/aspire.hosting/containerfilesoptions.md) -- `struct` - 3 fields -- Options for creating or updating files and directories in a container from polyglot apphosts.
- [CreateBuilderOptions](/reference/api/go/aspire.hosting/createbuilderoptions.md) -- `struct` - 8 fields -- Options for creating a distributed application builder from polyglot apphosts.
- [CreateInteractionInputOptions](/reference/api/go/aspire.hosting/createinteractioninputoptions.md) -- `struct` - 12 fields -- Optional configuration shared by interaction input factory capabilities.
- [DynamicLoadingOptions](/reference/api/go/aspire.hosting/dynamicloadingoptions.md) -- `struct` - 2 fields -- Options controlling when a dynamic-loading callback runs.
- [ExecuteCommandResult](/reference/api/go/aspire.hosting/executecommandresult.md) -- `struct` - 5 fields -- The result of executing a command. Returned from `ExecuteCommand`.
- [GenerateParameterDefault](/reference/api/go/aspire.hosting/generateparameterdefault.md) -- `struct` - 9 fields -- Represents that a default value should be generated.
- [HealthCheckResult](/reference/api/go/aspire.hosting/healthcheckresult.md) -- `struct` - 3 fields -- ATS-friendly custom health check result.
- [HttpCommandExportOptions](/reference/api/go/aspire.hosting/httpcommandexportoptions.md) -- `struct` - 11 fields -- ATS-friendly configuration for resource HTTP commands.
- [HttpCommandRequestExportData](/reference/api/go/aspire.hosting/httpcommandrequestexportdata.md) -- `struct` - 4 fields -- ATS-friendly request data returned from HTTP command prepare-request callbacks.
- [HttpsCertificateExecutionConfigurationContext](/reference/api/go/aspire.hosting/httpscertificateexecutionconfigurationcontext.md) -- `struct` - 4 fields -- Configuration context for server authentication certificate configuration.
- [HttpsCertificateExecutionConfigurationExportData](/reference/api/go/aspire.hosting/httpscertificateexecutionconfigurationexportdata.md) -- `struct` - 8 fields -- ATS-friendly HTTPS certificate data returned from an execution-configuration result.
- [HttpsCertificateInfo](/reference/api/go/aspire.hosting/httpscertificateinfo.md) -- `struct` - 3 fields -- ATS-friendly certificate metadata supplied to HTTPS certificate configuration callbacks.
- [InputInteractionResult](/reference/api/go/aspire.hosting/inputinteractionresult.md) -- `struct` - 2 fields -- The result of a single-input interaction prompt.
- [InteractionChoiceOption](/reference/api/go/aspire.hosting/interactionchoiceoption.md) -- `struct` - 2 fields -- A single selectable option for a choice input. Options are presented in the order supplied.
- [InteractionInput](/reference/api/go/aspire.hosting/interactioninput.md) -- `struct` - 15 fields -- Represents an input for an interaction.
- [InteractionInputsDialogOptions](/reference/api/go/aspire.hosting/interactioninputsdialogoptions.md) -- `struct` - 6 fields -- Options for inputs dialog prompts.
- [InteractionMessageBoxOptions](/reference/api/go/aspire.hosting/interactionmessageboxoptions.md) -- `struct` - 6 fields -- Options for message box and confirmation prompts.
- [InteractionNotificationOptions](/reference/api/go/aspire.hosting/interactionnotificationoptions.md) -- `struct` - 8 fields -- Options for notification prompts.
- [InteractionProgressOptions](/reference/api/go/aspire.hosting/interactionprogressoptions.md) -- `struct` - 4 fields -- Options for progress dialog prompts.
- [ParameterCustomInputOptions](/reference/api/go/aspire.hosting/parametercustominputoptions.md) -- `struct` - 10 fields -- Options for customizing parameter inputs from polyglot AppHosts.
- [ProcessCommandExportOptions](/reference/api/go/aspire.hosting/processcommandexportoptions.md) -- `struct` - 12 fields -- ATS-friendly configuration for resource process commands.
- [ProcessCommandResultExportOptions](/reference/api/go/aspire.hosting/processcommandresultexportoptions.md) -- `struct` - 4 fields -- ATS-friendly result and command configuration for resource process commands.
- [ProcessCommandSpecExportData](/reference/api/go/aspire.hosting/processcommandspecexportdata.md) -- `struct` - 7 fields -- ATS-friendly process specification for resource process command callbacks.
- [ReferenceEnvironmentInjectionOptions](/reference/api/go/aspire.hosting/referenceenvironmentinjectionoptions.md) -- `struct` - 4 fields -- Options that control which reference information is injected into environment variables.
- [ResourceEventDto](/reference/api/go/aspire.hosting/resourceeventdto.md) -- `struct` - 6 fields -- DTO for resource events returned from notification service.
- [ResourceUrlAnnotation](/reference/api/go/aspire.hosting/resourceurlannotation.md) -- `struct` - 5 fields -- A URL that should be displayed for a resource.
- [RunConfiguration](/reference/api/go/aspire.hosting/runconfiguration.md) -- `struct` - 1 fields -- Holds settings applicable to the AppHost run mode (when `Operation` is `Run`).
- [TerminalOptions](/reference/api/go/aspire.hosting/terminaloptions.md) -- `struct` - 2 fields -- Options for configuring a terminal session.
- [UpdateCommandStateResourceSnapshot](/reference/api/go/aspire.hosting/updatecommandstateresourcesnapshot.md) -- `struct` - 5 fields -- Resource snapshot data exposed to polyglot command state callbacks.

## Enums

- [CertificateTrustScope](/reference/api/go/aspire.hosting/certificatetrustscope.md) -- `enum` - 4 values -- Defines the scope of custom certificate authorities for a resource. The default scope for most resources is `Append`, but some resources may choose to override this default behavior.
- [CommandResultFormat](/reference/api/go/aspire.hosting/commandresultformat.md) -- `enum` - 3 values -- Specifies the format of a command result.
- [ContainerImageDestination](/reference/api/go/aspire.hosting/containerimagedestination.md) -- `enum` - 2 values -- Specifies the destination for container images.
- [ContainerImageFormat](/reference/api/go/aspire.hosting/containerimageformat.md) -- `enum` - 2 values -- Specifies the format for container images.
- [ContainerLifetime](/reference/api/go/aspire.hosting/containerlifetime.md) -- `enum` - 2 values -- Lifetime modes for container resources.
- [ContainerMountType](/reference/api/go/aspire.hosting/containermounttype.md) -- `enum` - 2 values -- Represents the type of a container mount.
- [ContainerTargetPlatform](/reference/api/go/aspire.hosting/containertargetplatform.md) -- `enum` - 7 values -- Specifies the target platform for container images.
- [DistributedApplicationOperation](/reference/api/go/aspire.hosting/distributedapplicationoperation.md) -- `enum` - 2 values -- Describes the context in which the AppHost is being executed.
- [EndpointProperty](/reference/api/go/aspire.hosting/endpointproperty.md) -- `enum` - 10 values -- Represents the properties of an endpoint that can be referenced.
- [HttpCommandResultMode](/reference/api/go/aspire.hosting/httpcommandresultmode.md) -- `enum` - 4 values -- Specifies how an HTTP command should surface the HTTP response body as command result data.
- [IconVariant](/reference/api/go/aspire.hosting/iconvariant.md) -- `enum` - 2 values -- The icon variant.
- [ImagePullPolicy](/reference/api/go/aspire.hosting/imagepullpolicy.md) -- `enum` - 4 values -- Image pull policies for container resources.
- [InputType](/reference/api/go/aspire.hosting/inputtype.md) -- `enum` - 6 values -- Specifies the type of input for an `InteractionInput`.
- [MessageIntent](/reference/api/go/aspire.hosting/messageintent.md) -- `enum` - 6 values -- Specifies the intent or purpose of a message in an interaction.
- [OtlpProtocol](/reference/api/go/aspire.hosting/otlpprotocol.md) -- `enum` - 3 values -- Protocols available for OTLP exporters.
- [ProbeType](/reference/api/go/aspire.hosting/probetype.md) -- `enum` - 3 values -- Enum representing the type of probe.
- [ResourceCommandState](/reference/api/go/aspire.hosting/resourcecommandstate.md) -- `enum` - 3 values -- The state of a resource command.
- [ResourceCommandVisibility](/reference/api/go/aspire.hosting/resourcecommandvisibility.md) -- `enum` - 3 values -- Describes where a resource command is visible.
- [UrlDisplayLocation](/reference/api/go/aspire.hosting/urldisplaylocation.md) -- `enum` - 2 values -- Specifies where the URL should be displayed.
- [WaitBehavior](/reference/api/go/aspire.hosting/waitbehavior.md) -- `enum` - 2 values -- Specifies the behavior of the wait.

## Functions

- [CreateBuilder](/reference/api/go/aspire.hosting/createbuilder.md) -- `function` -- Creates a new distributed application builder
- [GetFileNameWithContent](/reference/api/go/aspire.hosting/getfilenamewithcontent.md) -- `method` - on `AspireStore` -- Gets a deterministic file path that is a copy of the `sourceFilename`. The resulting file name will depend on the content of the file.
- [Exists](/reference/api/go/aspire.hosting/exists.md) -- `method` - on `Configuration` -- Checks whether a configuration section exists.
- [GetChildren](/reference/api/go/aspire.hosting/getchildren.md) -- `method` - on `Configuration` -- Gets the child sections of a configuration handle.
- [GetConfigValue](/reference/api/go/aspire.hosting/getconfigvalue.md) -- `method` - on `Configuration` -- Gets a configuration value by key.
- [GetConnectionString](/reference/api/go/aspire.hosting/getconnectionstring.md) -- `method` - on `Configuration` -- Gets a connection string by name.
- [GetSection](/reference/api/go/aspire.hosting/getsection.md) -- `method` - on `Configuration` -- Gets a configuration section by key.
- [CreateCertificateFile](/reference/api/go/aspire.hosting/createcertificatefile.md) -- `method` - on `ContainerFileSystemCallbackContext` -- Creates a PEM container certificate file entry with the OpenSSL subject-hash symlink.
- [CreateDirectory](/reference/api/go/aspire.hosting/createdirectory.md) -- `method` - on `ContainerFileSystemCallbackContext` -- Creates a container directory entry containing the specified child entries.
- [CreateFile](/reference/api/go/aspire.hosting/createfile.md) -- `method` - on `ContainerFileSystemCallbackContext` -- Creates a container file entry with inline contents or a host source path.
- [PublishAsConnectionString](/reference/api/go/aspire.hosting/publishasconnectionstring.md) -- `method` - on `ContainerResource` -- Changes the resource to be published as a connection string reference in the manifest.
- [PublishAsContainer](/reference/api/go/aspire.hosting/publishascontainer.md) -- `method` - on `ContainerResource` -- Changes the resource to be published as a container in the manifest.
- [WithBindMount](/reference/api/go/aspire.hosting/withbindmount.md) -- `method` - on `ContainerResource` -- Adds a bind mount to a container resource.
- [WithBuildArg](/reference/api/go/aspire.hosting/withbuildarg.md) -- `method` - on `ContainerResource` -- Adds a build argument when the container is built from a Dockerfile.
- [WithBuildSecret](/reference/api/go/aspire.hosting/withbuildsecret.md) -- `method` - on `ContainerResource` -- Adds a secret build argument when the container is built from a Dockerfile.
- [WithContainerCertificatePaths](/reference/api/go/aspire.hosting/withcontainercertificatepaths.md) -- `method` - on `ContainerResource` -- Adds container certificate path overrides used for certificate trust at run time.
- [WithContainerFiles](/reference/api/go/aspire.hosting/withcontainerfiles.md) -- `method` - on `ContainerResource` -- Creates or updates files and folders in a container by copying them from a source path on the host.
- [WithContainerFilesCallback](/reference/api/go/aspire.hosting/withcontainerfilescallback.md) -- `method` - on `ContainerResource` -- Creates or updates files and/or folders at the destination path in the container using entries produced by a callback.
- [WithContainerName](/reference/api/go/aspire.hosting/withcontainername.md) -- `method` - on `ContainerResource` -- Overrides the default container name for this resource. By default Aspire generates a unique container name based on the resource name and a random postfix (or a postfix based on a hash of the AppHost project path for persistent container resources). This method allows you to override that behavior with a custom name, but could lead to naming conflicts if the specified name is not unique.
- [WithContainerNetworkAlias](/reference/api/go/aspire.hosting/withcontainernetworkalias.md) -- `method` - on `ContainerResource` -- Adds a network alias to container resource.
- [WithContainerRuntimeArgs](/reference/api/go/aspire.hosting/withcontainerruntimeargs.md) -- `method` - on `ContainerResource` -- Adds a callback to be executed with a list of arguments to add to the container runtime run command when a container resource is started.
- [WithDockerfile](/reference/api/go/aspire.hosting/withdockerfile.md) -- `method` - on `ContainerResource` -- Causes Aspire to build the specified container image from a Dockerfile.
- [WithDockerfileBuilder](/reference/api/go/aspire.hosting/withdockerfilebuilder.md) -- `method` - on `ContainerResource` -- Configures the resource to use a programmatically generated Dockerfile
- [WithDockerfileFactory](/reference/api/go/aspire.hosting/withdockerfilefactory.md) -- `method` - on `ContainerResource` -- Builds the specified container image from a Dockerfile generated by an asynchronous factory function.
- [WithEntrypoint](/reference/api/go/aspire.hosting/withentrypoint.md) -- `method` - on `ContainerResource` -- Sets the Entrypoint for the container.
- [WithImage](/reference/api/go/aspire.hosting/withimage.md) -- `method` - on `ContainerResource` -- Allows overriding the image on a container.
- [WithImagePullPolicy](/reference/api/go/aspire.hosting/withimagepullpolicy.md) -- `method` - on `ContainerResource` -- Sets the pull policy for the container resource.
- [WithImageRegistry](/reference/api/go/aspire.hosting/withimageregistry.md) -- `method` - on `ContainerResource` -- Allows overriding the image registry on a container.
- [WithImageSHA256](/reference/api/go/aspire.hosting/withimagesha256.md) -- `method` - on `ContainerResource` -- Allows setting the image to a specific sha256 on a container.
- [WithImageTag](/reference/api/go/aspire.hosting/withimagetag.md) -- `method` - on `ContainerResource` -- Allows overriding the image tag on a container.
- [WithLifetime](/reference/api/go/aspire.hosting/withlifetime.md) -- `method` - on `ContainerResource` -- Sets the lifetime behavior of the container resource.
- [WithVolume](/reference/api/go/aspire.hosting/withvolume-containerresource-string.md) -- `method` - on `ContainerResource` -- Adds a volume to a container resource.
- [AddConnectionString](/reference/api/go/aspire.hosting/addconnectionstring.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a connection string resource
- [AddContainer](/reference/api/go/aspire.hosting/addcontainer.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a container resource to the application.
- [AddContainerRegistry](/reference/api/go/aspire.hosting/addcontainerregistry.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a container registry resource
- [AddCSharpApp](/reference/api/go/aspire.hosting/addcsharpapp.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a C# application resource
- [AddDockerfile](/reference/api/go/aspire.hosting/adddockerfile.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Dockerfile to the application model that can be treated like a container resource.
- [AddDockerfileBuilder](/reference/api/go/aspire.hosting/adddockerfilebuilder.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a container resource built from a programmatically generated Dockerfile
- [AddDockerfileFactory](/reference/api/go/aspire.hosting/adddockerfilefactory.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Dockerfile to the application model that can be treated like a container resource, with the Dockerfile content generated by an asynchronous factory function.
- [AddDotnetTool](/reference/api/go/aspire.hosting/adddotnettool.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a .NET tool resource to the application model.
- [AddEventingSubscriber](/reference/api/go/aspire.hosting/addeventingsubscriber.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an ATS-friendly eventing subscriber callback to the distributed-application builder.
- [AddExecutable](/reference/api/go/aspire.hosting/addexecutable.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an executable resource to the application model.
- [AddExternalService](/reference/api/go/aspire.hosting/addexternalservice.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an external service resource
- [AddHealthCheck](/reference/api/go/aspire.hosting/addhealthcheck.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a custom health check callback to the distributed-application builder.
- [AddParameter](/reference/api/go/aspire.hosting/addparameter.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a parameter resource
- [AddParameterFromConfiguration](/reference/api/go/aspire.hosting/addparameterfromconfiguration.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a parameter resource to the application, with a value coming from configuration.
- [AddParameterWithGeneratedValue](/reference/api/go/aspire.hosting/addparameterwithgeneratedvalue.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a parameter with a generated default value
- [AddProject](/reference/api/go/aspire.hosting/addproject.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a .NET project resource
- [GetConfiguration](/reference/api/go/aspire.hosting/getconfiguration.md) -- `method` - on `DistributedApplicationBuilder` -- Gets the application configuration.
- [SubscribeAfterPublish](/reference/api/go/aspire.hosting/subscribeafterpublish.md) -- `method` - on `DistributedApplicationBuilder` -- Subscribes to the AfterPublish event, which fires after the application is published.
- [SubscribeAfterResourcesCreated](/reference/api/go/aspire.hosting/subscribeafterresourcescreated.md) -- `method` - on `DistributedApplicationBuilder` -- Subscribes to the AfterResourcesCreated event, which fires after all resources are created.
- [SubscribeBeforePublish](/reference/api/go/aspire.hosting/subscribebeforepublish.md) -- `method` - on `DistributedApplicationBuilder` -- Subscribes to the BeforePublish event, which fires before the application is published.
- [SubscribeBeforeStart](/reference/api/go/aspire.hosting/subscribebeforestart.md) -- `method` - on `DistributedApplicationBuilder` -- Subscribes to the BeforeStart event, which fires before the application starts.
- [TryAddEventingSubscriber](/reference/api/go/aspire.hosting/tryaddeventingsubscriber.md) -- `method` - on `DistributedApplicationBuilder` -- Attempts to add an ATS-friendly eventing subscriber callback to the distributed-application builder.
- [WithOutputDiffing](/reference/api/go/aspire.hosting/withoutputdiffing.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an opt-in target that checks for stale generated pipeline output.
- [FindResourceByName](/reference/api/go/aspire.hosting/findresourcebyname.md) -- `method` - on `DistributedApplicationModel` -- Finds a resource by name.
- [GetResources](/reference/api/go/aspire.hosting/getresources.md) -- `method` - on `DistributedApplicationModel` -- Gets all resources in the distributed application model.
- [AddStep](/reference/api/go/aspire.hosting/addstep.md) -- `method` - on `DistributedApplicationPipeline` -- Adds an application-level pipeline step in a TypeScript-friendly shape.
- [Configure](/reference/api/go/aspire.hosting/configure.md) -- `method` - on `DistributedApplicationPipeline` -- Registers a pipeline configuration callback in a TypeScript-friendly shape.
- [DisableBuildOnlyContainerValidation](/reference/api/go/aspire.hosting/disablebuildonlycontainervalidation.md) -- `method` - on `DistributedApplicationPipeline` -- Disables the publish and deploy validation that requires build-only containers to be consumed by another resource.
- [AddContainerFilesStages](/reference/api/go/aspire.hosting/addcontainerfilesstages.md) -- `method` - on `DockerfileBuilder` -- Adds Dockerfile stages for published container files
- [Arg](/reference/api/go/aspire.hosting/arg-dockerfilebuilder-string.md) -- `method` - on `DockerfileBuilder` -- Adds a global ARG statement to the Dockerfile
- [From](/reference/api/go/aspire.hosting/from.md) -- `method` - on `DockerfileBuilder` -- Adds a FROM statement to start a Dockerfile stage
- [AddContainerFiles](/reference/api/go/aspire.hosting/addcontainerfiles.md) -- `method` - on `DockerfileStage` -- Adds COPY --from statements for published container files
- [Arg](/reference/api/go/aspire.hosting/arg-dockerfilestage-string.md) -- `method` - on `DockerfileStage` -- Adds an ARG statement to a Dockerfile stage
- [Cmd](/reference/api/go/aspire.hosting/cmd.md) -- `method` - on `DockerfileStage` -- Adds a CMD statement to a Dockerfile stage
- [Comment](/reference/api/go/aspire.hosting/comment.md) -- `method` - on `DockerfileStage` -- Adds a comment to a Dockerfile stage
- [Copy](/reference/api/go/aspire.hosting/copy.md) -- `method` - on `DockerfileStage` -- Adds a COPY statement to a Dockerfile stage
- [CopyFrom](/reference/api/go/aspire.hosting/copyfrom.md) -- `method` - on `DockerfileStage` -- Adds a COPY --from statement to a Dockerfile stage
- [EmptyLine](/reference/api/go/aspire.hosting/emptyline.md) -- `method` - on `DockerfileStage` -- Adds an empty line to a Dockerfile stage
- [Entrypoint](/reference/api/go/aspire.hosting/entrypoint.md) -- `method` - on `DockerfileStage` -- Adds an ENTRYPOINT statement to a Dockerfile stage
- [Env](/reference/api/go/aspire.hosting/env.md) -- `method` - on `DockerfileStage` -- Adds an ENV statement to a Dockerfile stage
- [Expose](/reference/api/go/aspire.hosting/expose.md) -- `method` - on `DockerfileStage` -- Adds an EXPOSE statement to a Dockerfile stage
- [Run](/reference/api/go/aspire.hosting/run.md) -- `method` - on `DockerfileStage` -- Adds a RUN statement to a Dockerfile stage
- [RunWithMounts](/reference/api/go/aspire.hosting/runwithmounts.md) -- `method` - on `DockerfileStage` -- Adds a RUN statement with mounts to a Dockerfile stage
- [User](/reference/api/go/aspire.hosting/user.md) -- `method` - on `DockerfileStage` -- Adds a USER statement to a Dockerfile stage
- [WorkDir](/reference/api/go/aspire.hosting/workdir.md) -- `method` - on `DockerfileStage` -- Adds a WORKDIR statement to a Dockerfile stage
- [WithToolIgnoreExistingFeeds](/reference/api/go/aspire.hosting/withtoolignoreexistingfeeds.md) -- `method` - on `DotnetToolResource` -- Configures the tool to use only the specified package sources, ignoring existing NuGet configuration.
- [WithToolIgnoreFailedSources](/reference/api/go/aspire.hosting/withtoolignorefailedsources.md) -- `method` - on `DotnetToolResource` -- Configures the resource to treat package source failures as warnings.
- [WithToolPackage](/reference/api/go/aspire.hosting/withtoolpackage.md) -- `method` - on `DotnetToolResource` -- Sets the package identifier for the tool configuration associated with the resource builder.
- [WithToolPrerelease](/reference/api/go/aspire.hosting/withtoolprerelease.md) -- `method` - on `DotnetToolResource` -- Allows prerelease versions of the tool to be used
- [WithToolSource](/reference/api/go/aspire.hosting/withtoolsource.md) -- `method` - on `DotnetToolResource` -- Adds a NuGet package source for tool acquisition.
- [WithToolVersion](/reference/api/go/aspire.hosting/withtoolversion.md) -- `method` - on `DotnetToolResource` -- Sets the package version for a tool to use.
- [OnAfterPublish](/reference/api/go/aspire.hosting/onafterpublish.md) -- `method` - on `EventingSubscriberRegistrationContext` -- Subscribes to the AfterPublish event from an eventing subscriber registration context.
- [OnAfterResourcesCreated](/reference/api/go/aspire.hosting/onafterresourcescreated.md) -- `method` - on `EventingSubscriberRegistrationContext` -- Subscribes to the AfterResourcesCreated event from an eventing subscriber registration context.
- [OnBeforePublish](/reference/api/go/aspire.hosting/onbeforepublish.md) -- `method` - on `EventingSubscriberRegistrationContext` -- Subscribes to the BeforePublish event from an eventing subscriber registration context.
- [OnBeforeStart](/reference/api/go/aspire.hosting/onbeforestart.md) -- `method` - on `EventingSubscriberRegistrationContext` -- Subscribes to the BeforeStart event from an eventing subscriber registration context.
- [PublishAsDockerFile](/reference/api/go/aspire.hosting/publishasdockerfile-executableresource-func-obj-containerresource.md) -- `method` - on `ExecutableResource` -- Publishes an executable as a Docker file
- [WithExecutableCommand](/reference/api/go/aspire.hosting/withexecutablecommand.md) -- `method` - on `ExecutableResource` -- Sets the command for the executable resource.
- [WithExecutableDebugSupport](/reference/api/go/aspire.hosting/withexecutabledebugsupport.md) -- `method` - on `ExecutableResource` -- Adds VS Code-compatible debug metadata for an executable resource.
- [WithVolume](/reference/api/go/aspire.hosting/withvolume-executableresource-string-string-string.md) -- `method` - on `ExecutableResource` -- Adds a volume to an executable resource.
- [WithWorkingDirectory](/reference/api/go/aspire.hosting/withworkingdirectory.md) -- `method` - on `ExecutableResource` -- Sets the working directory for the executable resource.
- [Build](/reference/api/go/aspire.hosting/build.md) -- `method` - on `ExecutionConfigurationBuilder` -- Builds the execution configuration for the specified builder.
- [WithArgumentsConfig](/reference/api/go/aspire.hosting/withargumentsconfig.md) -- `method` - on `ExecutionConfigurationBuilder` -- Adds a command line arguments configuration gatherer to the builder.
- [WithCertificateTrustConfig](/reference/api/go/aspire.hosting/withcertificatetrustconfig.md) -- `method` - on `ExecutionConfigurationBuilder` -- Adds a certificate trust configuration gatherer to the builder.
- [WithEnvironmentVariablesConfig](/reference/api/go/aspire.hosting/withenvironmentvariablesconfig.md) -- `method` - on `ExecutionConfigurationBuilder` -- Adds an environment variables configuration gatherer to the builder.
- [WithHttpsCertificateConfig](/reference/api/go/aspire.hosting/withhttpscertificateconfig.md) -- `method` - on `ExecutionConfigurationBuilder` -- Adds an HTTPS certificate configuration gatherer using certificate metadata instead of a raw X509 certificate.
- [GetCertificateTrustData](/reference/api/go/aspire.hosting/getcertificatetrustdata.md) -- `method` - on `ExecutionConfigurationResult` -- Gets certificate trust execution-configuration data when present.
- [GetHttpsCertificateData](/reference/api/go/aspire.hosting/gethttpscertificatedata.md) -- `method` - on `ExecutionConfigurationResult` -- Gets HTTPS certificate execution-configuration data when present.
- [WithHttpHealthCheck](/reference/api/go/aspire.hosting/withhttphealthcheck-externalserviceresource-noargs.md) -- `method` - on `ExternalServiceResource` -- Adds an HTTP health check to the external service for polyglot AppHosts.
- [IsDevelopment](/reference/api/go/aspire.hosting/isdevelopment.md) -- `method` - on `HostEnvironment` -- Checks if the environment is Development.
- [IsEnvironment](/reference/api/go/aspire.hosting/isenvironment.md) -- `method` - on `HostEnvironment` -- Checks if the environment matches the specified name.
- [IsProduction](/reference/api/go/aspire.hosting/isproduction.md) -- `method` - on `HostEnvironment` -- Checks if the environment is Production.
- [IsStaging](/reference/api/go/aspire.hosting/isstaging.md) -- `method` - on `HostEnvironment` -- Checks if the environment is Staging.
- [WithComputeEnvironment](/reference/api/go/aspire.hosting/withcomputeenvironment.md) -- `method` - on `IComputeResource` -- Configures the compute environment for the compute resource.
- [WithImagePushOptions](/reference/api/go/aspire.hosting/withimagepushoptions.md) -- `method` - on `IComputeResource` -- Adds an asynchronous callback to configure container image push options for the resource.
- [WithRemoteImageName](/reference/api/go/aspire.hosting/withremoteimagename.md) -- `method` - on `IComputeResource` -- Sets the remote image name (without registry endpoint or tag) for container push operations.
- [WithRemoteImageTag](/reference/api/go/aspire.hosting/withremoteimagetag.md) -- `method` - on `IComputeResource` -- Sets the remote image tag for container push operations.
- [PublishWithContainerFiles](/reference/api/go/aspire.hosting/publishwithcontainerfiles.md) -- `method` - on `IContainerFilesDestinationResource` -- Configures the resource to copy container files from the specified source resource during publishing.
- [CreateBooleanInput](/reference/api/go/aspire.hosting/createbooleaninput.md) -- `method` - on `InteractionService` -- Creates a boolean (checkbox) input.
- [CreateChoiceInput](/reference/api/go/aspire.hosting/createchoiceinput.md) -- `method` - on `InteractionService` -- Creates a choice input that selects from a list of options.
- [CreateFileInput](/reference/api/go/aspire.hosting/createfileinput.md) -- `method` - on `InteractionService` -- Creates a file input.
- [CreateNumberInput](/reference/api/go/aspire.hosting/createnumberinput.md) -- `method` - on `InteractionService` -- Creates a numeric input.
- [CreateSecretInput](/reference/api/go/aspire.hosting/createsecretinput.md) -- `method` - on `InteractionService` -- Creates a secret (masked) text input.
- [CreateTextInput](/reference/api/go/aspire.hosting/createtextinput.md) -- `method` - on `InteractionService` -- Creates a single-line text input.
- [IsAvailable](/reference/api/go/aspire.hosting/isavailable.md) -- `method` - on `InteractionService` -- Gets a value indicating whether the interaction service is available to prompt the user.
- [PromptConfirmation](/reference/api/go/aspire.hosting/promptconfirmation.md) -- `method` - on `InteractionService` -- Prompts the user for confirmation with an OK/Cancel dialog.
- [PromptInput](/reference/api/go/aspire.hosting/promptinput.md) -- `method` - on `InteractionService` -- Prompts the user for a single input.
- [PromptInputs](/reference/api/go/aspire.hosting/promptinputs.md) -- `method` - on `InteractionService` -- Prompts the user for multiple inputs.
- [PromptMessageBox](/reference/api/go/aspire.hosting/promptmessagebox.md) -- `method` - on `InteractionService` -- Prompts the user with a message box dialog.
- [PromptNotification](/reference/api/go/aspire.hosting/promptnotification.md) -- `method` - on `InteractionService` -- Prompts the user with a notification.
- [PromptProgress](/reference/api/go/aspire.hosting/promptprogress.md) -- `method` - on `InteractionService` -- Displays a progress dialog with an indeterminate progress indicator.
- [Log](/reference/api/go/aspire.hosting/log.md) -- `method` - on `Logger` -- Logs a message with a specified log level.
- [LogDebug](/reference/api/go/aspire.hosting/logdebug.md) -- `method` - on `Logger` -- Logs a debug message.
- [LogError](/reference/api/go/aspire.hosting/logerror.md) -- `method` - on `Logger` -- Logs an error message.
- [LogInformation](/reference/api/go/aspire.hosting/loginformation.md) -- `method` - on `Logger` -- Logs an information message.
- [LogWarning](/reference/api/go/aspire.hosting/logwarning.md) -- `method` - on `Logger` -- Logs a warning message.
- [CreateLogger](/reference/api/go/aspire.hosting/createlogger.md) -- `method` - on `LoggerFactory` -- Creates a logger for the specified category name.
- [AsOptional](/reference/api/go/aspire.hosting/asoptional.md) -- `method` - on `ParameterResource` -- Marks the parameter resource as optional.
- [AsRequired](/reference/api/go/aspire.hosting/asrequired.md) -- `method` - on `ParameterResource` -- Marks the parameter resource as required.
- [WithCustomInput](/reference/api/go/aspire.hosting/withcustominput.md) -- `method` - on `ParameterResource` -- Sets a custom input for the parameter resource from a polyglot AppHost.
- [WithDescription](/reference/api/go/aspire.hosting/withdescription.md) -- `method` - on `ParameterResource` -- Sets the description of the parameter resource.
- [AddMarkdown](/reference/api/go/aspire.hosting/addmarkdown.md) -- `method` - on `PipelineSummary` -- Adds a key-value pair to the pipeline summary with a Markdown-formatted value.
- [DisableForwardedHeaders](/reference/api/go/aspire.hosting/disableforwardedheaders.md) -- `method` - on `ProjectResource` -- Configures the project to disable forwarded headers when being published.
- [PublishAsDockerFile](/reference/api/go/aspire.hosting/publishasdockerfile-projectresource-noargs.md) -- `method` - on `ProjectResource` -- Publishes a project as a Docker file with optional container configuration
- [WithEndpointsInEnvironment](/reference/api/go/aspire.hosting/withendpointsinenvironment.md) -- `method` - on `ProjectResource` -- Includes only the specified project endpoint names in environment-variable injection.
- [WithReplicas](/reference/api/go/aspire.hosting/withreplicas.md) -- `method` - on `ProjectResource` -- Configures how many replicas of the project should be created for the project.
- [WithVolume](/reference/api/go/aspire.hosting/withvolume-projectresource-string-string-string.md) -- `method` - on `ProjectResource` -- Adds a volume to a project resource.
- [CompleteStep](/reference/api/go/aspire.hosting/completestep.md) -- `method` - on `ReportingStep` -- Completes the reporting step with plain-text completion text.
- [CompleteStepMarkdown](/reference/api/go/aspire.hosting/completestepmarkdown.md) -- `method` - on `ReportingStep` -- Completes the reporting step with Markdown-formatted completion text.
- [CreateMarkdownTask](/reference/api/go/aspire.hosting/createmarkdowntask.md) -- `method` - on `ReportingStep` -- Creates a reporting task with Markdown-formatted status text.
- [CreateTask](/reference/api/go/aspire.hosting/createtask.md) -- `method` - on `ReportingStep` -- Creates a reporting task with plain-text status text.
- [LogStep](/reference/api/go/aspire.hosting/logstep.md) -- `method` - on `ReportingStep` -- Logs a plain-text message for the reporting step.
- [LogStepMarkdown](/reference/api/go/aspire.hosting/logstepmarkdown.md) -- `method` - on `ReportingStep` -- Logs a Markdown-formatted message for the reporting step.
- [CompleteTask](/reference/api/go/aspire.hosting/completetask.md) -- `method` - on `ReportingTask` -- Completes the reporting task with plain-text completion text.
- [CompleteTaskMarkdown](/reference/api/go/aspire.hosting/completetaskmarkdown.md) -- `method` - on `ReportingTask` -- Completes the reporting task with Markdown-formatted completion text.
- [UpdateTask](/reference/api/go/aspire.hosting/updatetask.md) -- `method` - on `ReportingTask` -- Updates the reporting task with plain-text status text.
- [UpdateTaskMarkdown](/reference/api/go/aspire.hosting/updatetaskmarkdown.md) -- `method` - on `ReportingTask` -- Updates the reporting task with Markdown-formatted status text.
- [CreateExecutionConfiguration](/reference/api/go/aspire.hosting/createexecutionconfiguration.md) -- `method` - on `Resource` -- Creates an execution configuration builder for the specified resource.
- [ExcludeFromManifest](/reference/api/go/aspire.hosting/excludefrommanifest.md) -- `method` - on `Resource` -- Excludes a resource from being published to the manifest.
- [ExcludeFromMcp](/reference/api/go/aspire.hosting/excludefrommcp.md) -- `method` - on `Resource` -- Exclude the resource from MCP operations using the Aspire MCP server. The resource is excluded from results that return resources, console logs and telemetry.
- [GetResourceName](/reference/api/go/aspire.hosting/getresourcename.md) -- `method` - on `Resource` -- Gets the name of the resource from a builder.
- [GetSerializedAnnotation](/reference/api/go/aspire.hosting/getserializedannotation.md) -- `method` - on `Resource` -- Gets a serialized ATS annotation payload from a resource.
- [HasSerializedAnnotation](/reference/api/go/aspire.hosting/hasserializedannotation.md) -- `method` - on `Resource` -- Determines whether a resource has a serialized ATS annotation with the specified ID.
- [OnBeforeResourceStarted](/reference/api/go/aspire.hosting/onbeforeresourcestarted.md) -- `method` - on `Resource` -- Subscribes to the BeforeResourceStarted event.
- [OnInitializeResource](/reference/api/go/aspire.hosting/oninitializeresource.md) -- `method` - on `Resource` -- Subscribes to the InitializeResource event.
- [OnResourceReady](/reference/api/go/aspire.hosting/onresourceready.md) -- `method` - on `Resource` -- Subscribes to the ResourceReady event.
- [OnResourceStopped](/reference/api/go/aspire.hosting/onresourcestopped.md) -- `method` - on `Resource` -- Subscribes to the ResourceStopped event.
- [SubscribeHttpsEndpointsUpdate](/reference/api/go/aspire.hosting/subscribehttpsendpointsupdate.md) -- `method` - on `Resource` -- Subscribes to the `BeforeStartEvent` and invokes the specified callback when an HTTPS certificate is determined to be available for the resource. This is used to conditionally update endpoint URI schemes or perform other HTTPS-related configuration at startup.
- [WithChildRelationship](/reference/api/go/aspire.hosting/withchildrelationship.md) -- `method` - on `Resource` -- Sets a child relationship
- [WithCommand](/reference/api/go/aspire.hosting/withcommand.md) -- `method` - on `Resource` -- Adds a resource command
- [WithContainerBuildOptions](/reference/api/go/aspire.hosting/withcontainerbuildoptions.md) -- `method` - on `Resource` -- Configures container build options for a compute resource using an async callback.
- [WithContainerRegistry](/reference/api/go/aspire.hosting/withcontainerregistry.md) -- `method` - on `Resource` -- Configures the resource to use the specified container registry for container image operations.
- [WithDisplayOrder](/reference/api/go/aspire.hosting/withdisplayorder.md) -- `method` - on `Resource` -- Sets the default display order of the resource in lists of resources, such as the dashboard's. A saved ordering takes precedence. Repeated calls replace the order.
- [WithDockerfileBaseImage](/reference/api/go/aspire.hosting/withdockerfilebaseimage.md) -- `method` - on `Resource` -- Configures custom base images for generated Dockerfiles.
- [WithExplicitStart](/reference/api/go/aspire.hosting/withexplicitstart.md) -- `method` - on `Resource` -- Prevents resource from starting automatically
- [WithHealthCheck](/reference/api/go/aspire.hosting/withhealthcheck.md) -- `method` - on `Resource` -- Adds a health check by key
- [WithHidden](/reference/api/go/aspire.hosting/withhidden.md) -- `method` - on `Resource` -- Hides the resource from default resource lists
- [WithHiddenOnCompletion](/reference/api/go/aspire.hosting/withhiddenoncompletion.md) -- `method` - on `Resource` -- Hides the resource from default resource lists after successful completion
- [WithIconName](/reference/api/go/aspire.hosting/withiconname.md) -- `method` - on `Resource` -- Specifies the icon to use when displaying the resource in the dashboard.
- [WithLifetimeOf](/reference/api/go/aspire.hosting/withlifetimeof.md) -- `method` - on `Resource` -- Configures a resource to match the lifetime of another resource.
- [WithParentProcessLifetime](/reference/api/go/aspire.hosting/withparentprocesslifetime.md) -- `method` - on `Resource` -- Configures a resource to use a persistent lifetime that ends when a parent process exits.
- [WithParentRelationship](/reference/api/go/aspire.hosting/withparentrelationship.md) -- `method` - on `Resource` -- Sets the parent relationship
- [WithPersistentLifetime](/reference/api/go/aspire.hosting/withpersistentlifetime.md) -- `method` - on `Resource` -- Configures a resource to use a persistent lifetime.
- [WithPipelineConfiguration](/reference/api/go/aspire.hosting/withpipelineconfiguration.md) -- `method` - on `Resource` -- Registers a callback to be executed during the pipeline configuration phase, allowing modification of step dependencies and relationships.
- [WithPipelineStepFactory](/reference/api/go/aspire.hosting/withpipelinestepfactory.md) -- `method` - on `Resource` -- Adds a pipeline step to the resource that will be executed during deployment.
- [WithProcessCommand](/reference/api/go/aspire.hosting/withprocesscommand.md) -- `method` - on `Resource` -- Adds a command to the resource that starts a local process when invoked.
- [WithProcessCommandFactory](/reference/api/go/aspire.hosting/withprocesscommandfactory.md) -- `method` - on `Resource` -- Adds a command to the resource that starts a local process created by a callback when invoked.
- [WithRelationship](/reference/api/go/aspire.hosting/withrelationship.md) -- `method` - on `Resource` -- Adds a relationship to another resource using its builder.
- [WithRequiredCommand](/reference/api/go/aspire.hosting/withrequiredcommand.md) -- `method` - on `Resource` -- Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
- [WithRequiredCommandValidation](/reference/api/go/aspire.hosting/withrequiredcommandvalidation.md) -- `method` - on `Resource` -- Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start, with custom validation logic.
- [WithResourceTypeDisplayName](/reference/api/go/aspire.hosting/withresourcetypedisplayname.md) -- `method` - on `Resource` -- Overrides the human-readable resource type label.
- [WithSerializedAnnotation](/reference/api/go/aspire.hosting/withserializedannotation.md) -- `method` - on `Resource` -- Stores a serialized ATS annotation payload on a resource, replacing any existing annotation with the same ID.
- [WithSessionLifetime](/reference/api/go/aspire.hosting/withsessionlifetime.md) -- `method` - on `Resource` -- Configures a resource to use a session lifetime.
- [WithTags](/reference/api/go/aspire.hosting/withtags.md) -- `method` - on `Resource` -- Adds AppHost-defined dashboard tags that users cannot remove. Repeated calls add tags.
- [WithTerminal](/reference/api/go/aspire.hosting/withterminal.md) -- `method` - on `Resource` -- Adds an interactive terminal session to a resource with an optional callback to configure its initial dimensions.
- [WithTrait](/reference/api/go/aspire.hosting/withtrait.md) -- `method` - on `Resource` -- Adds immutable, non-sensitive metadata to a resource. Repeated names add multiple values.
- [WithUrl](/reference/api/go/aspire.hosting/withurl.md) -- `method` - on `Resource` -- Adds or modifies displayed URLs
- [WithUrlForEndpoint](/reference/api/go/aspire.hosting/withurlforendpoint.md) -- `method` - on `Resource` -- Registers a callback to update the URL displayed for the endpoint with the specified name.
- [WithUrls](/reference/api/go/aspire.hosting/withurls.md) -- `method` - on `Resource` -- Registers a callback to customize the URLs displayed for the resource.
- [ExecuteCommandAsync](/reference/api/go/aspire.hosting/executecommandasync.md) -- `method` - on `ResourceCommandService` -- Executes a command for the specified resource.
- [CompleteLog](/reference/api/go/aspire.hosting/completelog.md) -- `method` - on `ResourceLoggerService` -- Completes the log stream for a resource.
- [CompleteLogByName](/reference/api/go/aspire.hosting/completelogbyname.md) -- `method` - on `ResourceLoggerService` -- Completes the log stream by resource name.
- [PublishResourceUpdate](/reference/api/go/aspire.hosting/publishresourceupdate.md) -- `method` - on `ResourceNotificationService` -- Publishes an update for a resource's state.
- [TryGetResourceState](/reference/api/go/aspire.hosting/trygetresourcestate.md) -- `method` - on `ResourceNotificationService` -- Tries to get the current state of a resource.
- [WaitForDependencies](/reference/api/go/aspire.hosting/waitfordependencies.md) -- `method` - on `ResourceNotificationService` -- Waits for all dependencies of a resource to be ready.
- [WaitForResourceHealthy](/reference/api/go/aspire.hosting/waitforresourcehealthy.md) -- `method` - on `ResourceNotificationService` -- Waits for a resource to become healthy.
- [WaitForResourceState](/reference/api/go/aspire.hosting/waitforresourcestate.md) -- `method` - on `ResourceNotificationService` -- Waits for a resource to reach a specified state.
- [WaitForResourceStates](/reference/api/go/aspire.hosting/waitforresourcestates.md) -- `method` - on `ResourceNotificationService` -- Waits for a resource to reach one of the specified states.
- [WithArgs](/reference/api/go/aspire.hosting/withargs.md) -- `method` - on `ResourceWithArgs` -- Adds arguments to be passed to a resource that supports arguments when it is launched.
- [WithArgsCallback](/reference/api/go/aspire.hosting/withargscallback.md) -- `method` - on `ResourceWithArgs` -- Adds a callback to be executed with a list of command-line arguments when a resource is started.
- [WithArgsReplace](/reference/api/go/aspire.hosting/withargsreplace.md) -- `method` - on `ResourceWithArgs` -- Replaces the arguments to be passed to a resource that supports arguments when it is launched.
- [WithCertificateTrustEnvironment](/reference/api/go/aspire.hosting/withcertificatetrustenvironment.md) -- `method` - on `ResourceWithArgs` -- Configures environment variables that point to Aspire-managed certificate trust paths.
- [GetConnectionProperty](/reference/api/go/aspire.hosting/getconnectionproperty.md) -- `method` - on `ResourceWithConnectionString` -- Retrieves the value of a specified connection property from the resource's connection properties.
- [OnConnectionStringAvailable](/reference/api/go/aspire.hosting/onconnectionstringavailable.md) -- `method` - on `ResourceWithConnectionString` -- Subscribes to the ConnectionStringAvailable event.
- [WithConnectionProperty](/reference/api/go/aspire.hosting/withconnectionproperty.md) -- `method` - on `ResourceWithConnectionString` -- Adds a connection property annotation to the resource being built.
- [ClearContainerFilesSources](/reference/api/go/aspire.hosting/clearcontainerfilessources.md) -- `method` - on `ResourceWithContainerFiles` -- Removes any container files source annotation from the resource being built.
- [WithContainerFilesSource](/reference/api/go/aspire.hosting/withcontainerfilessource.md) -- `method` - on `ResourceWithContainerFiles` -- Adds a container files source annotation to the resource being built, specifying the path to the container files source.
- [AsHttp2Service](/reference/api/go/aspire.hosting/ashttp2service.md) -- `method` - on `ResourceWithEndpoints` -- Configures a resource to mark all endpoints' transport as HTTP/2. This is useful for HTTP/2 services that need prior knowledge.
- [GetEndpoint](/reference/api/go/aspire.hosting/getendpoint.md) -- `method` - on `ResourceWithEndpoints` -- Gets an endpoint reference
- [OnResourceEndpointsAllocated](/reference/api/go/aspire.hosting/onresourceendpointsallocated.md) -- `method` - on `ResourceWithEndpoints` -- Subscribes to the ResourceEndpointsAllocated event.
- [WithEndpoint](/reference/api/go/aspire.hosting/withendpoint.md) -- `method` - on `ResourceWithEndpoints` -- Adds a network endpoint
- [WithEndpointCallback](/reference/api/go/aspire.hosting/withendpointcallback.md) -- `method` - on `ResourceWithEndpoints` -- Updates a named endpoint via callback
- [WithEndpointProxySupport](/reference/api/go/aspire.hosting/withendpointproxysupport.md) -- `method` - on `ResourceWithEndpoints` -- Set whether a resource can use proxied endpoints or whether they should be disabled for all endpoints belonging to the resource. If set to `false`, endpoints belonging to the resource will ignore the configured proxy settings and run proxy-less.
- [WithExternalHttpEndpoints](/reference/api/go/aspire.hosting/withexternalhttpendpoints.md) -- `method` - on `ResourceWithEndpoints` -- Marks existing http or https endpoints on a resource as external.
- [WithHttpCommand](/reference/api/go/aspire.hosting/withhttpcommand.md) -- `method` - on `ResourceWithEndpoints` -- Adds an HTTP resource command
- [WithHttpEndpoint](/reference/api/go/aspire.hosting/withhttpendpoint.md) -- `method` - on `ResourceWithEndpoints` -- Adds an HTTP endpoint
- [WithHttpEndpointCallback](/reference/api/go/aspire.hosting/withhttpendpointcallback.md) -- `method` - on `ResourceWithEndpoints` -- Updates an HTTP endpoint via callback
- [WithHttpHealthCheck](/reference/api/go/aspire.hosting/withhttphealthcheck-resourcewithendpoints-noargs.md) -- `method` - on `ResourceWithEndpoints` -- Adds a health check to the resource which is mapped to a specific endpoint.
- [WithHttpProbe](/reference/api/go/aspire.hosting/withhttpprobe.md) -- `method` - on `ResourceWithEndpoints` -- Adds an HTTP health probe to the resource
- [WithHttpsEndpoint](/reference/api/go/aspire.hosting/withhttpsendpoint.md) -- `method` - on `ResourceWithEndpoints` -- Adds an HTTPS endpoint
- [WithHttpsEndpointCallback](/reference/api/go/aspire.hosting/withhttpsendpointcallback.md) -- `method` - on `ResourceWithEndpoints` -- Updates an HTTPS endpoint via callback
- [WithMcpServer](/reference/api/go/aspire.hosting/withmcpserver.md) -- `method` - on `ResourceWithEndpoints` -- Marks the resource as hosting a Model Context Protocol (MCP) server on the specified endpoint.
- [WithCertificateTrustScope](/reference/api/go/aspire.hosting/withcertificatetrustscope.md) -- `method` - on `ResourceWithEnvironment` -- Sets the certificate trust scope
- [WithDeveloperCertificateTrust](/reference/api/go/aspire.hosting/withdevelopercertificatetrust.md) -- `method` - on `ResourceWithEnvironment` -- Indicates whether developer certificates should be treated as trusted certificate authorities for the resource at run time. Currently this indicates trust for the ASP.NET Core developer certificate. The developer certificate will only be trusted when running in local development scenarios; in publish mode resources will use their default certificate trust.
- [WithEnvironment](/reference/api/go/aspire.hosting/withenvironment.md) -- `method` - on `ResourceWithEnvironment` -- Sets an environment variable
- [WithEnvironmentCallback](/reference/api/go/aspire.hosting/withenvironmentcallback.md) -- `method` - on `ResourceWithEnvironment` -- Allows for the population of environment variables on a resource.
- [WithHttpsCertificateConfiguration](/reference/api/go/aspire.hosting/withhttpscertificateconfiguration.md) -- `method` - on `ResourceWithEnvironment` -- Adds a callback that allows configuring the resource to use a specific HTTPS/TLS certificate key pair for server authentication.
- [WithHttpsDeveloperCertificate](/reference/api/go/aspire.hosting/withhttpsdevelopercertificate.md) -- `method` - on `ResourceWithEnvironment` -- Indicates that a resource should use the developer certificate key pair for HTTPS endpoints at run time. Currently this indicates use of the ASP.NET Core developer certificate. The developer certificate will only be used when running in local development scenarios; in publish mode resources will use their default certificate configuration.
- [WithOtlpExporter](/reference/api/go/aspire.hosting/withotlpexporter.md) -- `method` - on `ResourceWithEnvironment` -- Configures OTLP telemetry export
- [WithoutHttpsCertificate](/reference/api/go/aspire.hosting/withouthttpscertificate.md) -- `method` - on `ResourceWithEnvironment` -- Disable HTTPS/TLS server certificate configuration for the resource. No HTTPS/TLS termination configuration will be applied.
- [WithReference](/reference/api/go/aspire.hosting/withreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds a reference to another resource
- [WithReferenceEnvironment](/reference/api/go/aspire.hosting/withreferenceenvironment.md) -- `method` - on `ResourceWithEnvironment` -- Configures how information is injected into environment variables when the resource references other resources.
- [WaitFor](/reference/api/go/aspire.hosting/waitfor.md) -- `method` - on `ResourceWithWaitSupport` -- Waits for another resource to be ready
- [WaitForCompletion](/reference/api/go/aspire.hosting/waitforcompletion.md) -- `method` - on `ResourceWithWaitSupport` -- Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
- [WaitForStart](/reference/api/go/aspire.hosting/waitforstart.md) -- `method` - on `ResourceWithWaitSupport` -- Waits for another resource to start
- [GetAspireStore](/reference/api/go/aspire.hosting/getaspirestore.md) -- `method` - on `ServiceProvider` -- Gets the Aspire store from the service provider.
- [GetDistributedApplicationModel](/reference/api/go/aspire.hosting/getdistributedapplicationmodel.md) -- `method` - on `ServiceProvider` -- Gets the distributed application model from the service provider.
- [GetEventing](/reference/api/go/aspire.hosting/geteventing.md) -- `method` - on `ServiceProvider` -- Gets the distributed application eventing service from the service provider.
- [GetInteractionService](/reference/api/go/aspire.hosting/getinteractionservice.md) -- `method` - on `ServiceProvider` -- Gets the interaction service from the service provider.
- [GetLoggerFactory](/reference/api/go/aspire.hosting/getloggerfactory.md) -- `method` - on `ServiceProvider` -- Gets the logger factory from the service provider.
- [GetResourceCommandService](/reference/api/go/aspire.hosting/getresourcecommandservice.md) -- `method` - on `ServiceProvider` -- Gets the resource command service from the service provider.
- [GetResourceLoggerService](/reference/api/go/aspire.hosting/getresourceloggerservice.md) -- `method` - on `ServiceProvider` -- Gets the resource logger service from the service provider.
- [GetResourceNotificationService](/reference/api/go/aspire.hosting/getresourcenotificationservice.md) -- `method` - on `ServiceProvider` -- Gets the resource notification service from the service provider.
- [GetUserSecretsManager](/reference/api/go/aspire.hosting/getusersecretsmanager.md) -- `method` - on `ServiceProvider` -- Gets the user secrets manager from the service provider.
- [GetOrSetSecret](/reference/api/go/aspire.hosting/getorsetsecret.md) -- `method` - on `UserSecretsManager` -- Gets a secret value if it exists in configuration, or sets it to the provided value if it does not.
- [SaveStateJson](/reference/api/go/aspire.hosting/savestatejson.md) -- `method` - on `UserSecretsManager` -- Saves state to user secrets from a JSON string.

## Exported values

- `WellKnownPipelineSteps.BeforeStart`: `string` = `"before-start"` -- The step that runs before the application starts.
- `WellKnownPipelineSteps.Build`: `string` = `"build"` -- The well-known step for building resources.
- `WellKnownPipelineSteps.BuildPrereq`: `string` = `"build-prereq"` -- The prerequisite step that runs before any build operations.
- `WellKnownPipelineSteps.CheckContainerRuntime`: `string` = `"check-container-runtime"` -- The step that checks whether the container runtime (e.g., Docker or Podman) is running. Build steps that need a container runtime should depend on this step.
- `WellKnownPipelineSteps.Deploy`: `string` = `"deploy"` -- Aggregation step for all deploy operations. All deploy steps should be required by this step.
- `WellKnownPipelineSteps.DeployPrereq`: `string` = `"deploy-prereq"` -- The prerequisite step that runs before any deploy operations.
- `WellKnownPipelineSteps.Destroy`: `string` = `"destroy"` -- Aggregation step for all destroy operations. All destroy steps should be required by this step.
- `WellKnownPipelineSteps.DestroyPrereq`: `string` = `"destroy-prereq"` -- The prerequisite step that runs before any destroy operations.
- `WellKnownPipelineSteps.Diagnostics`: `string` = `"diagnostics"` -- The diagnostic step that dumps dependency graph information for troubleshooting.
- `WellKnownPipelineSteps.ProcessParameters`: `string` = `"process-parameters"` -- The step that prompts for parameter values before build, publish, or deployment operations.
- `WellKnownPipelineSteps.Publish`: `string` = `"publish"` -- Aggregation step for all publish operations. All publish steps should be required by this step.
- `WellKnownPipelineSteps.PublishPrereq`: `string` = `"publish-prereq"` -- The prerequisite step that runs before any publish operations.
- `WellKnownPipelineSteps.Push`: `string` = `"push"` -- The meta-step that coordinates all push operations. All push steps should be required by this step.
- `WellKnownPipelineSteps.PushPrereq`: `string` = `"push-prereq"` -- The prerequisite step that runs before any push operations.
- `WellKnownPipelineSteps.ValidateComputeEnvironments`: `string` = `"validate-compute-environments"` -- The step that validates compute resources are assigned to unambiguous compute environments.
- `WellKnownPipelineTags.BuildCompute`: `string` = `"build-compute"` -- Tag for steps that build compute resources.
- `WellKnownPipelineTags.DeployCompute`: `string` = `"deploy-compute"` -- Tag for steps that deploy to compute infrastructure.
- `WellKnownPipelineTags.ProvisionInfrastructure`: `string` = `"provision-infra"` -- Tag for steps that provision infrastructure resources.
- `WellKnownPipelineTags.PushContainerImage`: `string` = `"push-container-image"` -- Tag for steps that push container images to a registry.
