Browse Source

Merge pull request #11093 from abpframework/liangshiwei/patch-1

Rename InitializeAsync to InitializeApplicationAsync
pull/11097/head
maliming 4 years ago
committed by GitHub
parent
commit
ddc316e6b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Microsoft/AspNetCore/Components/WebAssembly/Hosting/AbpWebAssemblyHostBuilderExtensions.cs
  2. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Program.cs
  3. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host/Program.cs

2
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Microsoft/AspNetCore/Components/WebAssembly/Hosting/AbpWebAssemblyHostBuilderExtensions.cs

@ -65,7 +65,7 @@ public static class AbpWebAssemblyHostBuilderExtensions
return application; return application;
} }
public async static Task InitializeAsync( public async static Task InitializeApplicationAsync(
[NotNull] this IAbpApplicationWithExternalServiceProvider application, [NotNull] this IAbpApplicationWithExternalServiceProvider application,
[NotNull] IServiceProvider serviceProvider) [NotNull] IServiceProvider serviceProvider)
{ {

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Program.cs

@ -16,7 +16,7 @@ public class Program
var host = builder.Build(); var host = builder.Build();
await application.InitializeAsync(host.Services); await application.InitializeApplicationAsync(host.Services);
await host.RunAsync(); await host.RunAsync();
} }

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host/Program.cs

@ -16,7 +16,7 @@ public class Program
var host = builder.Build(); var host = builder.Build();
await application.InitializeAsync(host.Services); await application.InitializeApplicationAsync(host.Services);
await host.RunAsync(); await host.RunAsync();
} }

Loading…
Cancel
Save