-
Notifications
You must be signed in to change notification settings - Fork 849
Description
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.ServerNuGet 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!"
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!!!
Silverlight | Silverlight projects were removed in Visual Studio 2017. -- | --