[英]A decent clarification between Blazor Server-app, WebAssembly-HostedByDotNetCore and WebAssembly? [on hold]
I've been confused about the three different options of Blazor;我一直对 Blazor 的三个不同选项感到困惑; (Server-app, WebAssembly, and WebAssembly hosted). (服务器应用程序、WebAssembly 和 WebAssembly 托管)。 Although, This Post made it mostly clear.虽然,这篇文章说得很清楚。
However, it is still unclear for me, since we can benefit both the Client-side SinglePage experience and also the Server-side features over the Blazor Server-side app, why exactly we need to use the two other options (WebAssembly and WebAssembly-hosted)?但是,我仍然不清楚,因为我们可以同时受益于客户端 SinglePage 体验和服务器端功能,而不是 Blazor 服务器端应用程序,为什么我们需要使用其他两个选项(WebAssembly 和 WebAssembly-托管)? I know that on the webAssembly-hosted option, the code will be interpreted over the webAssembly and dot.NetCore on the Client-side.我知道在 webAssembly-hosted 选项中,代码将通过客户端的 webAssembly 和 dot.NetCore 进行解释。 On the other hand, on the Server-Side app, the request sends to the Server and will be rendered and then gets back to the browser.另一方面,在服务器端应用程序上,请求发送到服务器并被渲染,然后返回到浏览器。
So by using the Blazor Server-side app, I can either keep the way of coding like MVC.Net and having different .cshtml
pages, and also having a single-page part on my project.因此,通过使用 Blazor 服务器端应用程序,我既可以保持 MVC.Net 之类的编码方式并拥有不同的.cshtml
页面,也可以在我的项目中使用单页部分。 (Please correct me if I'm wrong!) (如果我错了,请纠正我!)
UPDATE:更新:
Let's ask it in this way:让我们这样问:
Honestly, client is the way to go.老实说,客户端是通往 go 的方式。 The SignalR approach with the server side is a slightly better version of asp.net with postbacks.使用服务器端的 SignalR 方法是带有回发的 asp.net 的稍好版本。
If you can take the time to learn how to use client side Blazor I think you'll be able to offer a must faster and better user experience to the user.如果您能花时间学习如何使用客户端 Blazor 我认为您将能够为用户提供更快更好的用户体验。
This is only my opinion but I think it's correct.这只是我的看法,但我认为这是正确的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.