RadiusRecipeParameterExtensions
Classstaticnet10.0
Recipe-parameter configuration entry points for
RadiusEnvironmentResource . These extensions attach a recipe-parameter annotation to the environment that the publisher consumes to emit a parameters block on each recipe entry under Radius.Core/recipePacks (and the legacy Applications.Core/environments inline-recipes shape). namespace Aspire.Hosting;
public static class RadiusRecipeParameterExtensions{ // ...}Remarks
Section titled Remarks Parameter values may be literals (string, number, boolean, array, or string-keyed object), an Application binding, or a Radius (e.g. Radius).
Precedence: a resource-type-scoped parameter overrides an environment-wide parameter of the same key for recipe entries of that type. Keys that do not collide are merged (union). Repeated calls for the same scope also merge, with the later call winning per key.
Methods2
Section titled MethodsWithRecipeParameters(IResourceBuilder<RadiusEnvironmentResource>, Action<IDictionary<string, object>>) extensionats ignoredIResourceBuilder<RadiusEnvironmentResource> Declares recipe parameters applied to every recipe entry in the environment's recipe pack.
WithRecipeParameters(IResourceBuilder<RadiusEnvironmentResource>, string, Action<IDictionary<string, object>>) extensionats ignoredIResourceBuilder<RadiusEnvironmentResource> Declares recipe parameters applied only to recipe entries of the given Radius resource type (e.g.
Radius.Data/redisCaches ). These take precedence over environment-wide parameters of the same key for that type.