@inject NavigationManager Navigation @inject SignOutSessionStateManager SignOutManager @CascadingState.Localizer["Login"] @code { [CascadingParameter] CascadingState CascadingState { get; set; } private async Task BeginSignOut(MouseEventArgs args) { await SignOutManager.SetSignOutState(); Navigation.NavigateTo("authentication/logout"); } }