# RadiusRecipeParameterExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Radius/Recipes/RadiusRecipeParameterExtensions.cs)

Recipe-parameter configuration entry points for [RadiusEnvironmentResource](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentresource.md). 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).

## Definition

```csharp
namespace Aspire.Hosting;

public static class RadiusRecipeParameterExtensions
{
    // ...
}
```

## Remarks

Parameter values may be literals (string, number, boolean, array, or string-keyed object), an `ApplicationModel.IResourceBuilder`1` binding, or a [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) (e.g. `RadiusProviderReference.AwsRegion`).

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.

## Methods

- [WithRecipeParameters(IResourceBuilder<RadiusEnvironmentResource>, Action<IDictionary<string, object>>)](/reference/api/csharp/aspire.hosting.radius/radiusrecipeparameterextensions/methods.md#withrecipeparameters-iresourcebuilder-radiusenvironmentresource-action-idictionary-string-object) : `IResourceBuilder<RadiusEnvironmentResource>` `extension` `ats ignored` -- Declares recipe parameters applied to every recipe entry in the environment's recipe pack.
- [WithRecipeParameters(IResourceBuilder<RadiusEnvironmentResource>, string, Action<IDictionary<string, object>>)](/reference/api/csharp/aspire.hosting.radius/radiusrecipeparameterextensions/methods.md#withrecipeparameters-iresourcebuilder-radiusenvironmentresource-string-action-idictionary-string-object) : `IResourceBuilder<RadiusEnvironmentResource>` `extension` `ats ignored` -- 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.
