From 696c5232e76f68011313466bf51c158ab00cee01 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Tue, 14 Feb 2023 20:12:38 -0500 Subject: [PATCH] Rename StartBrowserApp-like methods to end with "Async" suffix --- samples/ControlCatalog.Browser.Blazor/Program.cs | 2 +- samples/ControlCatalog.Browser/Program.cs | 2 +- .../Avalonia.Browser.Blazor/BlazorSingleViewLifetime.cs | 2 +- src/Browser/Avalonia.Browser/BrowserAppBuilder.cs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/ControlCatalog.Browser.Blazor/Program.cs b/samples/ControlCatalog.Browser.Blazor/Program.cs index 500055b4057..e68e9b14d97 100644 --- a/samples/ControlCatalog.Browser.Blazor/Program.cs +++ b/samples/ControlCatalog.Browser.Blazor/Program.cs @@ -19,7 +19,7 @@ public static async Task Main(string[] args) public static async Task StartAvaloniaApp() { await AppBuilder.Configure() - .StartBlazorApp(); + .StartBlazorAppAsync(); } public static WebAssemblyHostBuilder CreateHostBuilder(string[] args) diff --git a/samples/ControlCatalog.Browser/Program.cs b/samples/ControlCatalog.Browser/Program.cs index 4a4d8c7bb8b..e1a4500173e 100644 --- a/samples/ControlCatalog.Browser/Program.cs +++ b/samples/ControlCatalog.Browser/Program.cs @@ -17,7 +17,7 @@ await BuildAvaloniaApp() { ControlCatalog.Pages.EmbedSample.Implementation = new EmbedSampleWeb(); }) - .StartBrowserApp("out"); + .StartBrowserAppAsync("out"); } // Example without a ISingleViewApplicationLifetime diff --git a/src/Browser/Avalonia.Browser.Blazor/BlazorSingleViewLifetime.cs b/src/Browser/Avalonia.Browser.Blazor/BlazorSingleViewLifetime.cs index 1f62690aff7..7c5ee27c665 100644 --- a/src/Browser/Avalonia.Browser.Blazor/BlazorSingleViewLifetime.cs +++ b/src/Browser/Avalonia.Browser.Blazor/BlazorSingleViewLifetime.cs @@ -15,7 +15,7 @@ public static class BlazorAppBuilder /// /// Application builder. /// Browser backend specific options. - public static async Task StartBlazorApp(this AppBuilder builder, BrowserPlatformOptions? options = null) + public static async Task StartBlazorAppAsync(this AppBuilder builder, BrowserPlatformOptions? options = null) { options ??= new BrowserPlatformOptions(); options.FrameworkAssetPathResolver ??= filePath => $"/_content/Avalonia.Browser.Blazor/{filePath}"; diff --git a/src/Browser/Avalonia.Browser/BrowserAppBuilder.cs b/src/Browser/Avalonia.Browser/BrowserAppBuilder.cs index 866c8ceca4c..32637b6d1b5 100644 --- a/src/Browser/Avalonia.Browser/BrowserAppBuilder.cs +++ b/src/Browser/Avalonia.Browser/BrowserAppBuilder.cs @@ -21,7 +21,7 @@ public static class BrowserAppBuilder /// Application builder. /// ID of the html element where avalonia content should be rendered. /// Browser backend specific options. - public static async Task StartBrowserApp(this AppBuilder builder, string mainDivId, BrowserPlatformOptions? options = null) + public static async Task StartBrowserAppAsync(this AppBuilder builder, string mainDivId, BrowserPlatformOptions? options = null) { if (mainDivId is null) { @@ -46,9 +46,9 @@ public static async Task StartBrowserApp(this AppBuilder builder, string mainDiv /// Browser backend specific options. /// /// This method doesn't creates any avalonia views to be rendered. To do so create an object. - /// Alternatively, you can call method instead of . + /// Alternatively, you can call method instead of . /// - public static async Task SetupBrowserApp(this AppBuilder builder, BrowserPlatformOptions? options = null) + public static async Task SetupBrowserAppAsync(this AppBuilder builder, BrowserPlatformOptions? options = null) { builder = await PreSetupBrowser(builder, options);