Skip to content

.Net 8 Blasor Wasm template contains obsolete methods (SignOutStateManager) #52781

Open
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


The Blazor Wasm template in visual studio 17.8 for .Net 8 contains SignOutSessionStateManager which has been listed as obsolete since .Net 6. This method:

private async Task BeginLogout(MouseEventArgs args)
{
    await SignOutManager.SetSignOutState();
    Navigation.NavigateTo("authentication/logout");
}

Should be:

private void BeginLogout(MouseEventArgs args)
{
    Navigation.NavigateToLogout("authentication/logout");
}

Also, it makes zero sense that the template contains identical LoginDisplay.razor pages in both the Shared and Layout folders, and is overall a step backwards from the .Net 7 templates.

It makes no sense that template regressions passed through QA like this.


Original Comments

Feedback Bot on 11/16/2023, 06:43 PM:

(private comment, text removed)

Stephen Halter [MSFT] on 11/17/2023, 10:45 AM:

(private comment, text removed)

pfisher [MSFT] on 11/17/2023, 10:57 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyfeature-templates

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions