Blazor method modifier order (#23455)

pull/23460/head
Luke Latham 2021-10-05 11:08:48 -05:00 committed by GitHub
parent 43c285e58d
commit 3fd820c9bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 22 deletions

View File

@ -161,7 +161,7 @@
/// Triggered for any paging update.
/// </summary>
/// <returns>A <see cref="Task"/>.</returns>
protected async override Task OnParametersSetAsync()
protected override async Task OnParametersSetAsync()
{
// Make sure the page really chagned.
if (Page != _lastPage)

View File

@ -161,7 +161,7 @@
/// Triggered for any paging update.
/// </summary>
/// <returns>A <see cref="Task"/>.</returns>
protected async override Task OnParametersSetAsync()
protected override async Task OnParametersSetAsync()
{
// Make sure the page really chagned.
if (Page != _lastPage)

View File

@ -161,7 +161,7 @@
/// Triggered for any paging update.
/// </summary>
/// <returns>A <see cref="Task"/>.</returns>
protected async override Task OnParametersSetAsync()
protected override async Task OnParametersSetAsync()
{
// Make sure the page really chagned.
if (Page != _lastPage)

View File

@ -729,7 +729,7 @@ public class CustomAccountFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
CustomUserAccount account, RemoteAuthenticationUserOptions options)
{
var initialUser = await base.CreateUserAsync(account, options);
@ -1458,7 +1458,7 @@ The following example shows how to:
public Profile User { get; set; } = new Profile();
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
var currentQuery = new Uri(Navigation.Uri).Query;
@ -1591,7 +1591,7 @@ The `Authentication` component (`Pages/Authentication.razor`) saves and restores
public ApplicationAuthenticationState AuthenticationState { get; set; } =
new ApplicationAuthenticationState();
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
if (RemoteAuthenticationActions.IsAction(RemoteAuthenticationActions.LogIn,
Action) ||
@ -1770,7 +1770,7 @@ public class CustomAccountFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
CustomUserAccount account, RemoteAuthenticationUserOptions options)
{
var initialUser = await base.CreateUserAsync(account, options);
@ -2499,7 +2499,7 @@ The following example shows how to:
public Profile User { get; set; } = new Profile();
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
var currentQuery = new Uri(Navigation.Uri).Query;
@ -2632,7 +2632,7 @@ The `Authentication` component (`Pages/Authentication.razor`) saves and restores
public ApplicationAuthenticationState AuthenticationState { get; set; } =
new ApplicationAuthenticationState();
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
if (RemoteAuthenticationActions.IsAction(RemoteAuthenticationActions.LogIn,
Action) ||
@ -2811,7 +2811,7 @@ public class CustomAccountFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
CustomUserAccount account, RemoteAuthenticationUserOptions options)
{
var initialUser = await base.CreateUserAsync(account, options);

View File

@ -141,7 +141,7 @@ public class CustomAccountFactory
this.serviceProvider = serviceProvider;
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
CustomUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -683,7 +683,7 @@ public class CustomAccountFactory
this.serviceProvider = serviceProvider;
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
CustomUserAccount account,
RemoteAuthenticationUserOptions options)
{

View File

@ -170,7 +170,7 @@ This section uses the [utility classes (`GraphClientExtensions.cs`)](#graph-sdk)
@code {
private User user;
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
var request = GraphClient.Me.Request();
user = await request.GetAsync();
@ -215,7 +215,7 @@ public class CustomAccountFactory
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -447,7 +447,7 @@ public class CustomAccountFactory
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -661,7 +661,7 @@ This section uses the [utility classes (`GraphClientExtensions.cs`)](#graph-sdk)
@code {
private User user;
protected async override Task OnInitializedAsync()
protected override async Task OnInitializedAsync()
{
var request = GraphClient.Me.Request();
user = await request.GetAsync();
@ -706,7 +706,7 @@ public class CustomAccountFactory
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -938,7 +938,7 @@ public class CustomAccountFactory
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -1174,7 +1174,7 @@ public class CustomAccountFactory
this.logger = logger;
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{

View File

@ -306,7 +306,7 @@ public class CustomUserFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -877,7 +877,7 @@ public class CustomUserFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{
@ -1618,7 +1618,7 @@ public class CustomUserFactory
{
}
public async override ValueTask<ClaimsPrincipal> CreateUserAsync(
public override async ValueTask<ClaimsPrincipal> CreateUserAsync(
RemoteUserAccount account,
RemoteAuthenticationUserOptions options)
{