Skip to main content

StartBlazorAppAsync Method

Configures blazor backend, loads avalonia javascript modules and creates a single view lifetime.

Definition

Namespace: Avalonia.Browser.Blazor
Assembly: Avalonia.Browser.Blazor (in Avalonia.Browser.Blazor.dll)

public static Task StartBlazorAppAsync(
this AppBuilder builder,
BrowserPlatformOptions? options = null
)

Parameters

  AppBuilder
Application builder.
  BrowserPlatformOptions  (Optional)
Browser backend specific options.

Return Value

Task

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

BlazorAppBuilder Class
Avalonia.Browser.Blazor Namespace