Skip to content

Commit

Permalink
Merge pull request #6459 from wakuflair/add-async-suffix
Browse files Browse the repository at this point in the history
Add "Async" suffix to `ConfigureMainMenu` method
  • Loading branch information
realLiangshiwei authored Dec 4, 2020
2 parents 2cdd2a5 + d3d4954 commit dfd3fa0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private async Task ConfigureMainMenu(MenuConfigurationContext context)
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
var l = context.GetLocalizer<BloggingResource>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private Task ConfigureMainMenu(MenuConfigurationContext context)
private Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
//Add main menu items.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private Task ConfigureMainMenu(MenuConfigurationContext context)
private Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
//Add main menu items.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private async Task ConfigureMainMenu(MenuConfigurationContext context)
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
var administrationMenu = context.Menu.GetAdministration();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private async Task ConfigureMainMenu(MenuConfigurationContext context)
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
var settingManagementPageOptions = context.ServiceProvider.GetRequiredService<IOptions<SettingManagementComponentOptions>>().Value;
var settingPageCreationContext = new SettingComponentCreationContext(context.ServiceProvider);
Expand All @@ -42,7 +42,7 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)
)
);
}

protected virtual async Task<bool> CheckAnyOfPagePermissionsGranted(
SettingManagementComponentOptions settingManagementComponentOptions,
SettingComponentCreationContext settingComponentCreationContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private Task ConfigureMainMenu(MenuConfigurationContext context)
private Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
//Add main menu items.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
await ConfigureMainMenuAsync(context);
}
}

private Task ConfigureMainMenu(MenuConfigurationContext context)
private Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
//Add main menu items.

Expand Down

0 comments on commit dfd3fa0

Please sign in to comment.