diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.cs index 3641291d7e..3ddecd0929 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/MainLayout.razor.cs @@ -22,7 +22,7 @@ protected override async Task OnInitializedAsync() { try { - authManager.AuthenticationStateChanged += IsUserAuthenticated; + authManager.AuthenticationStateChanged += AuthenticationStateChanged; isUserAuthenticated = await prerenderStateService.GetValue(async () => (await AuthenticationStateTask).User.IsAuthenticated()); @@ -64,7 +64,7 @@ private void ToggleMenuHandler() isMenuOpen = !isMenuOpen; } - private async void IsUserAuthenticated(Task task) + private async void AuthenticationStateChanged(Task task) { try { @@ -91,7 +91,7 @@ protected virtual void Dispose(bool disposing) { if (disposed || disposing is false) return; - authManager.AuthenticationStateChanged -= IsUserAuthenticated; + authManager.AuthenticationStateChanged -= AuthenticationStateChanged; unsubscribeCultureChange(); diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/SignalRHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/SignalRHandler.cs index 65f7ed2c56..9dba203dad 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/SignalRHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/SignalRHandler.cs @@ -14,12 +14,12 @@ protected async override Task OnAfterFirstRenderAsync() { await base.OnAfterFirstRenderAsync(); - authManager.AuthenticationStateChanged += IsUserAuthenticated; + authManager.AuthenticationStateChanged += AuthenticationStateChanged; await ConnectSignalR(); } - private async void IsUserAuthenticated(Task task) + private async void AuthenticationStateChanged(Task task) { try {