Skip to content
Docs Try Aspire
Docs Try

BlazorWasmAppResource

Class sealed net8.0
📦 Aspire.Hosting.Blazor v13.4.0-preview.1.26281.18
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.
namespace Aspire.Hosting;
public sealed class BlazorWasmAppResource
: Aspire.Hosting.ApplicationModel.Resource,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithEnvironment,
Aspire.Hosting.ApplicationModel.IResourceWithParent
{
// ...
}
ResourceIResourceIResourceWithEnvironmentIResourceWithParent