Skip to content

[Docs] Feedback: SignalR Docs Tutorial/SampleΒ #22607

Open

Description

@DevTKSS

On which page? πŸ“„

https://platform.uno/docs/articles/signalr.html

What's wrong? ❗

To me its unclear, how this Sample/Tutorial exactly shows to me the integration in a Uno App, because it seems to only show ASP NET Core Programm.cs code, but nothing I would know from my regular Uno App Template.

The Tutorial should be improved by adding a Uno App context, like Supported Platforms and what we can expect in the end to see. The current registration in asp net core makes me as new to SignalR-User assume, that:

  • I will end up with Razor Pages in my Uno App Solution instead of getting a Uno Wasm target driven UI? (see the MapRazorPages() call in the second code sample block contained in this docs page!)
  • The Questions:
    • "Does Uno or at least its browserwasm target behave exactly like Razor Pages?"
    • "So am I able to register and show my Uno Wasm UI on a ASP NET Core Server to be shown at runtime?"
    • "Is the Uno.Wasm.Bootstrap.Server NuGet of Uno possibly required for exactly this?" since I only have been able to find docs for non-Server package using samples in the Bootstrapper docs (not equivalent to the Uno App Templates contained Server option, I am aware of this! But this is exactly the missing point!)

The UnoChat Sample Readme in Uno.Samples Repo does compared to this docs page show to me a (Web?) UI and Console app, while I would not know of any way to have a Console App as UI in Uno (I indeed tryed this, but was not possible to establish using the current docs. nobody tells what hostbuilder setup in programm.cs I would be needing. And also the sample global.json file shows to me a 5.3.96 version, which is defintly not a Version I would rely on, when searching for a lookup. too many versions and especially breaking changes (SkiaRenderer, Desktop target...) did happen meanwhile.

additionally, it would make sense, to let the reader know of all of the code we seem to need in the ViewModel, if I would want to beleave the Sample eitherway:
https://github.com/unoplatform/Uno.Samples/blob/master/UI/ChatSignalR/src/UnoChat/Presentation/ViewModel.cs
and turns out, the answer to the filed question above with the "will I end up using Razor Pages in a Uno App as UI instead of a Uno Wasm target" is "Yes, you will rather use Razor then Web Assembly UI build with the Uno.Sdk!"

Image

Any feedback? πŸ’¬

Just a feedback from my POV, this tutorial paints to me a really sad image and impression when it comes to the Uno Wasm Target integration.

I know that we can not have a server side rendering, but is our Wasm target really this kind of bad integrate-able with a ASP NET Core Server, so we need to make advertisement for sending Uno Users over to using Razor / Blazor instead, where it seems to be possible to integrate and fully/detailed document this with a Server project? 🀷

I have been searching for a Gprc using sample, like the Maui Client of the dotnet/eShop Sample is doing, but while I am quite sure there have been one in the Uno docs in the past, all I can find now is the Migration page here: https://platform.uno/docs/articles/guides/silverlight-migration/08-data-access-overview.html#_content of silverlight, which projects has been removed from VS support up from the 2017 Version!!!

https://learn.microsoft.com/en-us/visualstudio/releases/2026/port-migrate-and-upgrade-visual-studio-projects

Silverlight | Silverlight projects were removed in Visual Studio 2017. -- | --

Child issues

Activity

  1. added
    triage/untriaged
    difficulty/tbd
    on Feb 8, 2026
  2. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Validation update (2026-03-05): I reviewed this on branch fix/algolia-docsearch-duplicates-and-layout (PR #22789). This issue still persists / is not resolved by the current branch changes. Tracking and consolidation: #22788.

  3. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Updated validation (2026-03-05): Confirmed the SignalR docs at doc/articles/signalr.md reference aspnetcore-7.0, use Startup.cs pattern, and list Visual Studio 2019 as prerequisite. Content is significantly outdated. Issue persists. Tracking: #22788.

  4. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Resolution

    This issue has been addressed in commit 237a71e2df32 on branch fix/algolia-docsearch-duplicates-and-layout (PR #22789).

    The SignalR tutorial (doc/articles/signalr.md) has been fully rewritten to resolve all concerns raised:

    Reported Issue Fix
    References aspnetcore-7.0, VS2019, Startup.cs pattern Updated to .NET 9+, VS2022+, minimal API Program.cs
    AddRazorPages() / MapRazorPages() suggests Razor instead of Uno Removed β€” server now only uses AddSignalR() + MapHub<>()
    No Uno client-side integration code Added full HubConnection code-behind with DispatcherQueue marshaling + XAML UI
    Missing supported platforms info Added platform table (WASM, Skia, iOS/Android, WinUI) with transport notes
    No CORS guidance for WASM Added CORS configuration section with dev/prod guidance
    No reconnection handling Added WithAutomaticReconnect() customization + connection state event handlers
    Tutorial was ~50 lines, server-only Now 277 lines with complete end-to-end walkthrough

    Related to #22788

  5. self-assigned this
    on Mar 6, 2026
  6. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Official sample update complete: the Uno.Samples ChatSignalR sample has been modernized to align with the new SignalR documentation.

    Updated in Uno.Samples:

    Validation: UnoChat.Service and UnoChat.Client.Console build successfully after the update.

  7. MartinZikmund commented on May 18, 2026

    @MartinZikmund
    Member

    Thanks for the detailed feedback @DevTKSS - this is very fair. Looking at doc/articles/signalr.md on master, the tutorial is indeed outdated (aspnetcore-7.0, Startup.cs, VS2019) and crucially shows no Uno client integration, which is exactly what a reader on this page expects. The AddRazorPages/MapRazorPages calls are also a leftover from the ASP.NET template rather than something Uno itself requires, and I can see how that's confusing.

    We'll keep this open in the docs backlog. The rewrite should: drop the Razor Pages noise, modernize to .NET 9+ minimal API, add an end-to-end HubConnection example with DispatcherQueue marshaling, document supported targets (WASM/Skia/Mobile) including the CORS story for WASM, and align with the updated Uno.Samples ChatSignalR sample. Appreciate you laying this out so concretely.

  8. removed their assignment
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/tbdkind/documentationtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions