深入淺出:.NET框架設計與實現

深入淺出:.NET框架設計與實現

《深入淺出:.NET框架設計與實現》是電子工業出版社出版圖書,作者是馮輝。

通過閱讀本書,讀者可以深入了解.NET框架的核心設計,掌握.NET 性能調優和 ASP.NET Core 的部署方式。

基本介紹

  • 中文名:深入淺出:.NET框架設計與實現
  • 作者:馮輝
  • 出版社:電子工業出版社
  • 出版時間:2023年3月
  • 頁數:414 頁
  • 定價:129.00 元
  • 開本:16 開
  • ISBN9787121420191
內容簡介,圖書目錄,作者簡介,

內容簡介

《深入淺出:.NET框架設計與實現》主要介紹.NET 框架的核心部分,不僅闡述了框架的核心設計,還展示了實踐代碼和運行效果,同時根據不同的功能模組擴展出屬於自己的小組件。

圖書目錄

第 1 章 .NET 概述和環境安裝 ······························ 1
1.1 .NET 框架簡介 ········································ 1
1.2 .NET 的開發環境 ····································· 6
1.3 小結 ········ 20
第 2 章 .NET 運行原理概述 ······························· 21
2.1 .NET CLI 概述 ······································ 21
2.2 小結 ········ 36
第 3 章 ASP.NET Core 應用程式的多種運行模式 ·· 37
3.1 自宿主 ····· 37
3.2 IIS 服務承載 ········································· 38
3.3 將 WebAPI 嵌入桌面應用程式中··············· 39
3.4 服務承載·· 41
3.5 延伸閱讀:WindowsFormsLifetime ············ 53
3.6 小結 ········ 59
第 4 章依賴注入 · 60
4.1 .NET 依賴注入 ······································ 61
4.2 實現批量服務註冊 ································· 80
4.3 小結 ········ 84
第 5 章配置與選項 ·········································· 85
5.1 配置模式·············································· 85
5.2 選項模式············································· 101
5.3 設計一個簡單的配置中心······················· 121
5.4 小結 ······· 130
第 6 章使用 IHostedService 和 BackgroundService 實現後台任務 ············· 131
6.1 IHostedService ······································ 131
6.2 BackgroundService ································ 134
6.3 任務調度············································· 137
6.4 小結 ······· 142
第 7 章中間件 143
7.1 中間件的作用 ······································ 143
7.2 中間件的調用過程 ································ 144
7.3 編寫自定義中間件 ································ 147
7.4 在過濾器中套用中間件 ·························· 151
7.5 製作簡單的 API 統一回響格式與自動包裝 156
7.6 延伸閱讀:責任鏈模式 ·························· 159
7.7 延伸閱讀:中間件常見的擴展方法·········· 162
7.8 小結 ······· 174
第 8 章快取 ···175
8.1 記憶體快取············································· 175
8.2 分散式快取 ········································· 180
8.3 HTTP 快取 ·········································· 188
8.4 小結 ······· 193
第 9 章本地化 194
9.1 內容本地化 ········································· 194
9.2 多樣化的數據源 ··································· 203
9.3 小結 ······· 210
第 10 章健康檢查 ··········································· 211
10.1 檢查當前套用的健康狀態····················· 211
10.2 發布健康報告 ····································· 233
10.3 可視化健康檢查界面 ··························· 238
10.4 小結 ····· 240
第 11 章檔案系統 ··········································· 241
11.1 ASP.NET Core 靜態檔案······················· 241
11.2 自定義一個簡單的檔案系統·················· 247
11.3 小結 ····· 253
第 12 章日誌 ·············································254
12.1 控制台日誌 ········································ 254
12.2 調試日誌 ··········································· 281
12.3 事件日誌 ··········································· 285
12.4 EventSource 日誌································ 292
12.5 TraceSource 日誌································· 298
12.6 DiagnosticSource 日誌·························· 303
12.7 小結 ····· 309
第 13 章多執行緒與任務並行 ······························ 310
13.1 執行緒簡介 ··········································· 310
13.2 基於任務的異步編程 ··························· 316
13.3 執行緒並行 ··········································· 328
13.4 小結 ····· 329
第 14 章執行緒同步機制和鎖 ······························ 330
14.1 原子操作 ··········································· 330
14.2 自旋鎖 ·· 333
14.3 混合鎖 ·· 337
14.4 互斥鎖 ·· 340
14.5 信號量 ·· 341
14.6 讀寫鎖 ·· 346
14.7 小結 ····· 348
第 15 章記憶體管理 ··········································· 349
15.1 記憶體分配 ··········································· 349
15.2 垃圾回收器 ········································ 357
15.3 資源釋放 ··········································· 362
15.4 垃圾回收器的設定 ······························ 368
15.5 小結 ····· 374
第 16 章診斷和調試········································375
16.1 性能診斷工具 ····································· 375
16.2 Linux 調試 ········································· 416
16.3 小結 ····· 429
第 17 章編譯技術精講 ···································· 430
17.1 IL 解析 ············································· 430
17.2 JIT 簡介 ············································435
17.3 JIT 編譯 ············································437
17.4 AOT 編譯 ·········································· 446
17.5 小結 ····· 450
第 18 章部署 ·············································451
18.1 發布與部署 ········································ 451
18.2 Docker ·· 460
18.3 編寫 Dockerfile 檔案 ···························· 469
18.4 構建.NET 套用鏡像 ····························· 472
18.5 Docker Compose ·································· 477
18.6 Docker Swarm ····································· 480
18.7 Kubernetes ········································· 485
18.8 小結 ····· 496

作者簡介

馮輝,Microsoft MVP、Dapr Member、.NET Conf China 2020/2021講師、開源技術的積極倡導者與貢獻者。具有豐富的.NET開發經驗,專注於.NET平台、雲原生、服務化和DevOps等技術領域的研究。

相關詞條

熱門詞條

聯絡我們