Skip to content

Commit

Permalink
Merge pull request #10398 from abpframework/liangshiwei/patch
Browse files Browse the repository at this point in the history
Change virtual keyword order
  • Loading branch information
maliming committed Oct 22, 2021
2 parents 8ba028d + 7533fda commit dfe6517
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public AbpPageToolbarViewComponent(IPageToolbarManager toolbarManager)
ToolbarManager = toolbarManager;
}

public async Task<IViewComponentResult> InvokeAsync(string pageName)
public virtual async Task<IViewComponentResult> InvokeAsync(string pageName)
{
var items = await ToolbarManager.GetItemsAsync(pageName);
return View("~/Pages/Shared/Components/AbpPageToolbar/Default.cshtml", items);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public MainNavbarMenuViewComponent(IMenuManager menuManager)
MenuManager = menuManager;
}

public async virtual Task<IViewComponentResult> InvokeAsync()
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var menu = await MenuManager.GetMainMenuAsync();
return View("~/Themes/Basic/Components/Menu/Default.cshtml", menu);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public LanguageSwitchViewComponent(ILanguageProvider languageProvider)
LanguageProvider = languageProvider;
}

public async virtual Task<IViewComponentResult> InvokeAsync()
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var languages = await LanguageProvider.GetLanguagesAsync();
var currentLanguage = languages.FindByCulture(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public MainNavbarToolbarViewComponent(IToolbarManager toolbarManager)
ToolbarManager = toolbarManager;
}

public async virtual Task<IViewComponentResult> InvokeAsync()
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var toolbar = await ToolbarManager.GetAsync(StandardToolbars.Main);
return View("~/Themes/Basic/Components/Toolbar/Default.cshtml", toolbar);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public UserMenuViewComponent(IMenuManager menuManager)
MenuManager = menuManager;
}

public async virtual Task<IViewComponentResult> InvokeAsync()
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var menu = await MenuManager.GetAsync(StandardMenus.User);
return View("~/Themes/Basic/Components/Toolbar/UserMenu/Default.cshtml", menu);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public TagEditorViewComponent(ITagAppService tagAppService)
TagAppService = tagAppService;
}

public async Task<IViewComponentResult> InvokeAsync(string entityType, string entityId, bool displaySubmitButton = true)
public virtual async Task<IViewComponentResult> InvokeAsync(string entityType, string entityId, bool displaySubmitButton = true)
{
var tags =
entityId.IsNullOrWhiteSpace() ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public EmailSettingGroupViewComponent(IEmailSettingsAppService emailSettingsAppS
EmailSettingsAppService = emailSettingsAppService;
}

public async virtual Task<IViewComponentResult> InvokeAsync()
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var model = await EmailSettingsAppService.GetAsync();

Expand Down

0 comments on commit dfe6517

Please sign in to comment.