-
-
Notifications
You must be signed in to change notification settings - Fork 362
doc(Hosting): add hosting model documentation #7003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b12a39f
doc: 增加托管模型菜单
ArgoZhang 4080c2e
doc: 增加模板
ArgoZhang e4e31d1
doc: 增加托管模型文档
ArgoZhang 1056a51
Merge branch 'main' into doc-model
ArgoZhang 8c1583d
Merge branch 'main' into doc-model
ArgoZhang 47feebc
Merge branch 'main' into doc-model
ArgoZhang 6ad2e8b
doc: 调整托管模型文档顺序
ArgoZhang 3909555
doc: 支持富文本
ArgoZhang 9f03236
doc: 增加托管模型菜单
ArgoZhang 7f4018d
doc: 更新编号
ArgoZhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/BootstrapBlazor.Server/Components/Pages/HostModel.razor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @page "/host-model" | ||
| @inject IOptions<WebsiteOptions> WebsiteOption | ||
|
|
||
| <h3>ASP.NET Core Blazor 托管模型</h3> | ||
|
|
||
| <p>目前 ASP.NET Core Blazor 的托管模型一共有三种,分别是</p> | ||
ArgoZhang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <ul class="ul-demo"> | ||
| <li><a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-server" target="_blank">Blazor Server</a> <b class="text-danger">(新手强烈推荐)</b></li> | ||
| <li><a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-webassembly" target="_blank">Blazor WebAssembly</a></li> | ||
| <li><a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?wt.mc_id=DT-MVP-5004174#blazor-hybrid" target="_blank">Blazor Hybrid</a></li> | ||
| </ul> | ||
|
|
||
| <p><b>目前我们推荐使用 <code>Blazor Server</code> 托管模型</b></p> | ||
ArgoZhang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <p>使用最新版 <code>Visual Studio</code> 新建 <code>Blazor</code> 项目时选择 <code>Blazor Web App</code></p> | ||
|
|
||
| <img src="@WebsiteOption.Value.GetAssetUrl("images/blazor-web-app.png")" style="width: 100%; max-width: 780px;" /> | ||
|
|
||
| <p><code>Interactive render mode</code> 又分为以下几种方式</p> | ||
|
|
||
| <ul class="ul-demo"> | ||
| <li>None</li> | ||
| <li>Server <b class="text-danger">(新手强烈推荐)</b></li> | ||
| <li>WebAssembly</li> | ||
| <li>Auto</li> | ||
| </ul> | ||
|
|
||
| <p><code>Interactivity Location</code> 又分为以下两种方式</p> | ||
|
|
||
| <ul class="ul-demo"> | ||
| <li>Per page/component</li> | ||
| <li>Global <b class="text-danger">(新手强烈推荐)</b></li> | ||
| </ul> | ||
|
|
||
| <Video Name="hosting" /> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.