RadiusExtensions
Classstaticnet10.0
Provides extension methods for adding and configuring Radius environment resources.
namespace Aspire.Hosting;
public static class RadiusExtensions{ // ...}Methods4
Section titled MethodsAddRadiusEnvironment(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<RadiusEnvironmentResource> Adds a Radius compute environment to the application model.
ConfigureRadiusInfrastructure(IResourceBuilder<RadiusEnvironmentResource>, Action<RadiusInfrastructureOptions>)extensionexperimentalats ignoredIResourceBuilder<RadiusEnvironmentResource> Registers a callback that can customize the generated Radius infrastructure before Bicep is emitted.
WithContainerImage(IResourceBuilder<ProjectResource>, string)extensionexperimentalats exportIResourceBuilder<ProjectResource> Associates a pre-built container image reference with a project resource so the Aspire.Hosting.Radius publisher can emit a valid Radius container manifest for it.
WithNamespace(IResourceBuilder<RadiusEnvironmentResource>, string)extensionats exportIResourceBuilder<RadiusEnvironmentResource> Sets the Kubernetes namespace for the Radius environment.