ASP.NET Core in Action CONTENTS
目录
front matter
preface acknowledgments about this book about the author about the cover illustration
前言 致谢 关于本书 关于作者 关于封面插图
1 Getting started with ASP.NET Core
1 ASP.NET Core 入门
Part 1 Getting started with minimal APIs
第1部分:开始使用最少的 API
2 Understanding ASP.NET Core
2 了解 ASP.NET Core
3 Your first application
3 您的第一个应用程序
4 Handling requests with the middleware pipeline
4 使用中间件管道处理请求
5 Creating a JSON API with minimal APIs
5 使用最少的 API创建 JSON API
6 Mapping URLs to endpoints using routing
6 使用路由将 URL 映射到端点
7 Model binding and validation in minimal APIs
7 在最少的 API 中进行模型绑定和验证
Part 2 Building complete applications
第2部分:构建完整的应用程序
8 An introduction to dependency injection
8 依赖关系注入简介
9 Registering services with dependency injection
9 使用依赖关系注入注册服务
10 Configuring an ASP.NET Core application
10 配置 ASP.NET Core 应用程序
11 Documenting APIs with OpenAPI
11 使用 OpenAPI记录 API
12 Saving data with Entity Framework Core
12 使用 Entity Framework Core 保存数据
Part 3 Generating HTML with Razor Pages and MVC
第3部分:使用 Razor Pages 和 MVC 生成 HTML
13 Creating a website with Razor Pages
13 使用 Razor Pages创建网站
14 Mapping URLs to Razor Pages using routing
14 使用路由将 URL 映射到 Razor Pages
15 Generating responses with page handlers in Razor Pages
15 使用 Razor Pages中的页面处理程序生成响应
16 Binding and validating requests with Razor Pages
16 使用 Razor Pages绑定和验证请求
17 Rendering HTML using Razor views
17 使用 Razor 视图呈现 HTML
18 Building forms with Tag Helpers
18 使用标记帮助程序构建表单
19 Creating a website with MVC controllers
19 使用 MVC 控制器创建网站
20 Creating an HTTP API using web API controllers
20 使用 Web API 控制器创建 HTTP API
21 The MVC and Razor Pages filter pipeline
21 MVC 和 Razor Pages 筛选器管道
22 Creating custom MVC and Razor Page filters
22 创建自定义 MVC 和 Razor 页面筛选器
Part 4 Securing and deploying your applications
第4部分:保护和部署应用程序
23 Authentication: Adding users to your application with Identity
23 身份验证:使用 Identity将用户添加到您的应用程序
24 Authorization: Securing your application
24 授权:保护您的应用程序
25 Authentication and authorization for APIs
25 API的身份验证和授权
26 Monitoring and troubleshooting errors with logging
26 使用日志记录监控和排除错误
27 Publishing and deploying your application
27 发布和部署您的应用程序
28 Adding HTTPS to an application
28 将 HTTPS 添加到应用程序
29 Improving your application's security
29 提高应用程序的安全性
Part 5 Going further with ASP.NET Core
第5部分:使ASP.NET Core更进一步
30 uilding ASP.NET Core apps with the generic host and Startup
30 使用通用主机和启动ASP.NET Core 应用程序
31 Advanced configuration of ASP.NET Core
31 ASP.NET Core的高级配置
32 Building custom MVC and Razor Pages components
32 构建自定义 MVC 和 Razor Pages 组件
33 Calling remote APIs with IHttpClientFactory
33 使用 IHttpClientFactory调用远程 API
34 Building background tasks and services
34 构建后台任务和服务
35 Testing applications with xUnit
35 使用 xUnit测试应用程序
36 Testing ASP.NET Core applications
36 测试 ASP.NET Core 应用程序
appendix A Preparing your development environment
附录 A 准备开发环境
appendix B Useful references index
附录 B 有用的参考索引