如何在同一网站中同时使用Blazor客户端和服务器 [英] How to use both Blazor client and server in same web
问题描述
我正在学习 Blazor
,并看到两种类型的 client-side
和 server-side
的好处.
I'm learning about the Blazor
, and see benefit of 2 types client-side
and server-side
.
我想在同一网站上同时使用两者一个路径是客户端
WebAssembly
应用,另一路径是服务器端
在服务器中运行代码.
I want to use both on the same web e.g. one path is a client-side
WebAssembly
app, another path is a server-side
that run code in server.
我看过 Blazor Full-Stack
模板(不太了解),但是最新的模板包中没有.他们是否有意将其删除?(仅剩2个 Blazor Server应用程序
和 Blazor WebAssembly应用程序
)
I have seen Blazor Full-Stack
template (not quite understand) but it missing from latest templates package. Did they remove it on purpose?
(only 2 left Blazor Server App
and Blazor WebAssembly App
)
我从此命令下载模板.
dotnet新-i Microsoft.AspNetCore.Blazor.Templates :: 3.0.0-preview9.19465.2
客户端
和服务器端
可以一起工作吗?
推荐答案
它不受官方支持或构建,但从理论上讲是可能的.但是,这是他们正在寻找的东西.
It is not officially supported or build, but, it is in theory possible. However, it is something they are looking into.
来源(从38:35开始观看): https://youtu.be/qF6ixMjCzHA?t = 1715
这篇关于如何在同一网站中同时使用Blazor客户端和服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!