Aspire.Hosting.ApplicationModel Namespace

Classes

AfterEndpointsAllocatedEvent

This experimental event is published after all endpoints have been allocated.

AfterResourcesCreatedEvent

This experimental event is published after all resuorces have been created.

AllocatedEndpoint

Represents an endpoint allocated for a service instance.

AzureOpenAIDeployment

Represents an Azure OpenAI Deployment.

AzureOpenAIResource

Represents an Azure OpenAI resource.

AzureSignalRResource

Represents an Azure SignalR resource.

AzureWebPubSubResource

Represents an Azure Web PubSub resource.

BeforeResourceStartedEvent

This event is raised by orchestrators before they have started a new resource.

BeforeStartEvent

This experimental event is published before the application starts.

CommandLineArgsCallbackAnnotation

Represents an annotation that provides a callback to be executed with a list of command-line arguments when an executable resource is started.

CommandLineArgsCallbackContext

Represents a callback context for the list of command-line arguments associated with an executable resource.

ConnectionStringRedirectAnnotation

Links to a resource that implements IResourceWithConnectionString that can be used by the containing resource to acquire a connection string.

ConnectionStringReference

Represents a reference to a connection string.

ContainerImageAnnotation

Represents an annotation for a container image.

ContainerMountAnnotation

Represents a mount annotation for a container resource.

ContainerResource

A resource that represents a specified container.

ContainerRuntimeArgsCallbackAnnotation

Represents an additional argument to pass to the container runtime run command.

ContainerRuntimeArgsCallbackContext

Represents a callback context for the list of command-line arguments to be passed to the container runtime run command.

CustomResourceKnownProperties

Known properties for resources that show up in the dashboard.

CustomResourceSnapshot

An immutable snapshot of the state of a resource.

DisableForwardedHeadersAnnotation

Represents an annotation that disables enabling forwarded headers on ASP.NET Core projects on publish.

DistributedApplicationModel

Represents a distributed application.

DockerBuildArg

Represents a name/value pair, used to satisfy the docker builder --build-arg <NAME>[=<VALUE>] command switch. For more information, see .

ElasticsearchResource

A resource that represents a Elasticsearch

EndpointAnnotation

Represents an endpoint annotation that describes how a service should be bound to a network.

EndpointReference

Represents an endpoint reference for a resource with endpoints.

EndpointReferenceExpression

Represents a property expression for an endpoint reference.

EnvironmentCallbackAnnotation

Represents an annotation that provides a callback to modify the environment variables of an application.

EnvironmentCallbackContext

Represents a callback context for environment variables associated with a publisher.

EnvironmentVariableSnapshot

A snapshot of an environment variable.

ExecutableResource

A resource that represents a specified executable process.

GarnetResource

A resource that represents a Garnet resource independent of the hosting model.

GenerateParameterDefault

Represents that a default value should be generated.

HostUrl

Represents a URL on the host machine. When referenced in a container resource, localhost will be replaced with the configured container host name.

KeycloakResource

A resource that represents a Keycloak resource.

KnownResourceStates

The set of well known resource states.

KnownResourceStateStyles

The set of well known resource states.

ManifestPublishingCallbackAnnotation

Represents an annotation that provides a callback to be executed during manifest publishing.

MilvusDatabaseResource

A resource that represents a Milvus database. This is a child resource of a MilvusServerResource.

MongoDBDatabaseResource

A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource.

MongoDBServerResource

A resource that represents a MongoDB container.

MySqlDatabaseResource

A resource that represents a MySQL database. This is a child resource of a MySqlServerResource.

MySqlServerResource

A resource that represents a MySQL container.

NatsServerResource

A resource that represents a NATS server container.

OracleDatabaseResource

A resource that represents an Oracle Database database. This is a child resource of a OracleDatabaseServerResource.

OracleDatabaseServerResource

A resource that represents an Oracle Database container.

ParameterDefault

Represents how a default value should be retrieved.

ParameterResource

Represents a parameter resource.

PostgresDatabaseResource

A resource that represents a PostgreSQL database. This is a child resource of a PostgresServerResource.

PostgresServerResource

A resource that represents a PostgreSQL container.

ProjectResource

A resource that represents a specified .NET project.

ProjectResourceExtensions

Provides extension methods for DistributedApplicationModel to work with ProjectResource instances.

QdrantServerResource

A resource that represents a Qdrant database.

RabbitMQServerResource

A resource that represents a RabbitMQ resource.

RedisResource

A resource that represents a Redis resource independent of the hosting model.

ReferenceExpression

Represents an expression that might be made up of multiple resource properties. For example, a connection string might be made up of a host, port, and password from different endpoints.

ReferenceExpressionBuilder

A builder for creating ReferenceExpression instances.

ReplicaAnnotation

Represents an annotation that specifies the number of replicas for a resource.

Resource

Represents an abstract resource that can be used by an application, that implements IResource.

ResourceAnnotationCollection

Represents a collection of resource metadata annotations.

ResourceEvent

Represents a change in the state of a resource.

ResourceExtensions

Provides extension methods for the IResource interface.

ResourceLoggerService

A service that provides loggers for resources to write to.

ResourceNotificationService

A service that allows publishing and subscribing to changes in the state of a resource.

ResourcePropertySnapshot

A snapshot of the resource property.

ResourceSnapshotAnnotation

An annotation that represents the initial snapshot of a resource.

ResourceStateSnapshot

A snapshot of the resource state

SeqResource

A .NET Aspire resource that is a Seq server.

SqlServerDatabaseResource

A resource that represents a SQL Server database that is a child of a SQL Server container resource.

SqlServerServerResource

A resource that represents a SQL Server container.

UrlSnapshot

A snapshot of the url.

ValkeyResource

A resource that represents a Valkey resource independent of the hosting model.

Structs

LogLine

Represents a console log line.

LogSubscriber

Represents a log subscriber for a resource.

ReferenceExpression.ExpressionInterpolatedStringHandler

Represents a handler for interpolated strings that contain expressions. Those expressions will either be literal strings or instances of types that implement both IValueProvider and IManifestExpressionProvider.

ReferenceExpressionBuilder.ReferenceExpressionBuilderInterpolatedStringHandler

Represents a handler for interpolated strings that contain expressions. Those expressions will either be literal strings or instances of types that implement both IValueProvider and IManifestExpressionProvider.

Interfaces

IAzureResource

Represents an Azure resource, as a marker interface for IResource's that can be deployed to an Azure resource group.

IManifestExpressionProvider

An interface that allows an object to express how it should be represented in a manifest.

IResource

Represents a resource that can be hosted by an application.

IResourceAnnotation

Represents an annotation for a resource.

IResourceBuilder<T>

Defines a builder for creating resources of type T.

IResourceCollection

Represents a collection of resources.

IResourceWithArgs

Represents a resource that is associated with commandline arguments.

IResourceWithConnectionString

Represents a resource that has a connection string associated with it.

IResourceWithEndpoints

Represents a resource that has endpoints associated with it.

IResourceWithEnvironment

Represents a resource that is associated with an environment.

IResourceWithParent

Represents a resource that has a parent resource.

IResourceWithParent<T>

Represents a resource that has a parent resource of type T.

IValueProvider

An interface that allows the value to be provided for an environment variable.

IValueWithReferences

An interface that allows the value to list its references.

Enums

ContainerMountType

Represents the type of a container mount.

EndpointProperty

Represents the properties of an endpoint that can be referenced.

ResourceAnnotationMutationBehavior

Specifies behavior of the WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior) method when adding an annotation to the Annotations collection of a resource.