Blazor method modifier order (#23455)
parent
43c285e58d
commit
3fd820c9bd
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue