# BlazorWasmAppResource Constructors

- Package: [Aspire.Hosting.Blazor](/reference/api/csharp/aspire.hosting.blazor.md)
- Type: [BlazorWasmAppResource](/reference/api/csharp/aspire.hosting.blazor/blazorwasmappresource.md)
- Kind: `Constructors`
- Members: `1`

A resource representing a Blazor WebAssembly application project. This is not a running process -- it's metadata about a WASM project whose static web assets are served through a Gateway. Implements IResourceWithEnvironment so that WithReference() can be used to declare service dependencies (the annotations are read at orchestration time). Implements IResourceWithParent so that the orchestrator mirrors the gateway's lifecycle state (Running, Stopped, etc.) to this child resource automatically.

## BlazorWasmAppResource(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Blazor/Resources/BlazorWasmAppResource.cs#L20-L23)

A resource representing a Blazor WebAssembly application project. This is not a running process -- it's metadata about a WASM project whose static web assets are served through a Gateway. Implements IResourceWithEnvironment so that WithReference() can be used to declare service dependencies (the annotations are read at orchestration time). Implements IResourceWithParent so that the orchestrator mirrors the gateway's lifecycle state (Running, Stopped, etc.) to this child resource automatically.

```csharp
public sealed class BlazorWasmAppResource
{
    public BlazorWasmAppResource(
        string name,
        string projectPath)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `projectPath` (`string`)
