一起了解 .Net Foundation 項目 No.3


 

.Net 基金會中包含有很多優秀的項目,今天就和筆者一起了解一下其中的一些優秀作品吧。

中文介紹

中文介紹內容翻譯自英文介紹,主要采用意譯、如與原文存在出入,請以原文為准。

AutoMapper

AutoMapper 是一款基於約定的從對象到對象的映射器。它用於解決對象間進行賦值時編寫和測試枯燥乏味的代碼。

利用簡單的約定規則,AutoMapper 消除了成百上千的代碼,這強化了開發者的 DTO 設計,使得其更加容易測試對象映射關系。

項目詳情

相關鏈接

筆者簡評

單進程內的多層次結構設計出來之后,對象間映射幾乎成為一個不可避免的問題。

直接使用 new 和 = 就能實現的問題,為何還要采用一個類庫來解決呢?

軟件開發不變的便是變化,原生的辦法並不是不好寫,而是改起來困難,特別需要進行字段改動和特殊功能的時候,此時,使用 AutoMapper 這樣的類庫可以省下不少麻煩。

當然,絕大多數的環境下使用 Profile 和 DynamicMap 幾乎就能夠滿足需求。

但是也千萬不要忽略研究 AutoMapper 提供的高級特性:對象扁平化、值工廠、Ioc 集成、映射啟動時檢查等等,利用好這些高級特性,也能減少不少代碼量。

英文介紹

AutoMapper

AutoMapper is a convention-based, object-to-object mapper. It replaces that boring object value copying code that’s both tedious to write and test.

With straightforward conventions, AutoMapper removes hundreds or thousands of lines of code, enforcing a policy on your DTO design and making it simple to test your mappings.

Project Details

以上《英文介紹》摘錄自 .NET Foundation 的項目介紹 。原文受原項目許可證保護。## 中文介紹

中文介紹內容翻譯自英文介紹,主要采用意譯、如與原文存在出入,請以原文為准。

Microsoft Azure SDK for .NET

Microsoft Azure SDK for .NET 使開發者構建.Net 應用程序時能夠受益於可伸縮的雲計算資源。

項目詳情

相關鏈接

筆者簡評

朴實無華:用於對接 Azure 雲的 SDK。

英文介紹

Microsoft Azure SDK for .NET

The Microsoft Azure SDK for .NET allows you to build .NET applications that take advantage of scalable cloud computing resources.

Project Details

以上《英文介紹》摘錄自 .NET Foundation 的項目介紹 。原文受原項目許可證保護。## 中文介紹

中文介紹內容翻譯自英文介紹,主要采用意譯、如與原文存在出入,請以原文為准。

Microsoft Azure WebJobs SDK

The Azure WebJobs SDK is a framework that simplifies the task of writing background processing code that runs in Azure WebJobs. It includes a declarative binding and trigger system that works with Azure Storage Blobs, Queues and Tables as well as Service Bus. The binding system makes it incredibly easy to write code that reads or writes Azure Storage objects. The trigger system automatically invokes a function in your code whenever any new data is received in a queue or blob. The SDK also provides an integrated Dashboard experience in the Azure management portal, with rich monitoring and diagnostics information for your WebJob runs.

Azure WebJobs SDK 是一個開發框架,用於簡化開發運行於 Azure WebJobs 之上后台運行任務。

它包括有可聲明使用的綁定系統和觸發器系統,這些系統基於 Azure Storage Blobs、 Queues 、 Tables 以及 Service Bus。綁定系統能夠是的編寫用於讀寫 Azure Storage 對象的代碼變得極為簡單。觸發器系統能夠當新數據被隊列或者存儲接受時,在代碼中自動調用一個函數。

該 SDK 同時也提供了集成於 Azure 管理門戶的儀表盤,通過儀表盤可以多方面的監控和查看 WebJob 的相關診斷信息。

項目詳情

相關鏈接

筆者簡評

WebJobs 可以理解為一種能夠后台任務,其可以被 Azure 當中的多種數據源進行觸發並工作。該項目包含的 SDK 便是開發該類任務的 SDK。

其作用強依賴與 Azure 雲提供的相關功能。

英文介紹

Microsoft Azure WebJobs SDK

The Azure WebJobs SDK is a framework that simplifies the task of writing background processing code that runs in Azure WebJobs. It includes a declarative binding and trigger system that works with Azure Storage Blobs, Queues and Tables as well as Service Bus. The binding system makes it incredibly easy to write code that reads or writes Azure Storage objects. The trigger system automatically invokes a function in your code whenever any new data is received in a queue or blob. The SDK also provides an integrated Dashboard experience in the Azure management portal, with rich monitoring and diagnostics information for your WebJob runs.

Project Details

以上《英文介紹》摘錄自 .NET Foundation 的項目介紹 。原文受原項目許可證保護。

其他項目


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM