# StaticValueProvider<T> Constructors

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [StaticValueProvider<T>](/reference/api/csharp/aspire.hosting.foundry/staticvalueprovider-1.md)
- Kind: `Constructors`
- Members: `2`

A static value provider that returns a fixed value once it's been set.

## StaticValueProvider

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs#L228-L231)

Creates a new instance of the `Foundry.StaticValueProvider`1` class.

```csharp
public class StaticValueProvider<T>
{
    public StaticValueProvider()
    {
        // ...
    }
}
```

## StaticValueProvider(T)

- Name: `Constructor(T)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs#L236-L240)

Creates a new instance of the `Foundry.StaticValueProvider`1` class.

```csharp
public class StaticValueProvider<T>
{
    public StaticValueProvider(
        T value)
    {
        // ...
    }
}
```

## Parameters

- `value` (`T`)
