Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBlazorGateway

Method
📦 Aspire.Hosting.Blazor v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) AddBlazorGateway(name string) ProjectResource

Signature

methodAddBlazorGatewaybuilder
Registers the built-in Blazor Gateway. During development the gateway runs from the official .NET tool. Publishing continues to use the file-based app shipped with this package.
AddBlazorGateway(name string) ProjectResource
namestring
ProjectResource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder