Skip to content
DocsTry Aspire
DocsTry

RadiusEnvironmentResource Constructors

ClassConstructors1 member
Represents a Radius compute environment in the Aspire app model.
Initializes a new instance of the RadiusEnvironmentResource class.
public sealed class RadiusEnvironmentResource
{
public RadiusEnvironmentResource(
string name)
{
// ...
}
}
namestringThe name of the Radius environment resource.
Registers the publish/deploy pipeline steps as annotations on the resource so any caller that adds this resource to the application model gets a working environment. In Run mode the resource is normally not added to the model (see AddRadiusEnvironment) and the annotations are inert. Mirrors KubernetesEnvironmentResource / DockerComposeEnvironmentResource, which also keep their step factories on the resource itself rather than the extension method.