.NET 基金會項目介紹-Managed Extensibility Framework MEF, MEF2

  • 2020 年 3 月 16 日
  • 筆記

Managed Extensibility Framework MEF, MEF2 是屬於 .Net 基金會的一個項目,本文將簡要介紹該項目相關的資訊。

中文介紹

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

Managed Extensibility Framework (MEF, MEF2)

Managed Extensibility Framework (MEF) 為大型應用程式提供了一個組合層,以改善應用程式的靈活性、可維護性和可測試性。

MEF 可用於作為「支援提三方插件」的擴展性,或者為常規應用程式帶來松耦合、可插拔的優勢。

MEF 是 Microsoft .NET Framework 的一部分,其類型主要都存在於 System.ComponentModel.Composition.* 名稱空間之下。

項目詳情

相關鏈接

筆者簡評

MEF 可以被歸類為一類 IOC 框架,其在微軟的很多大型工程中得到應用,典型的以 Visual Studio 這樣的大型應用程式。

不過在 IOC 框架方面,諸如 Autofac 、 StructureMap 和 Microsoft.DependencyInjection 之類的等等選擇很多。因此,在微軟的項目之外,用到 MEF 的似乎並不多見。

有趣的是,為了項目的特殊性, MEF 在微軟中其實有至少三個不同的版本:Differences between .NET MEF, NuGet MEF and VS MEF

英文介紹

Managed Extensibility Framework (MEF, MEF2)

The Managed Extensibility Framework (MEF) is a composition layer for .NET that improves the flexibility, maintainability and testability of large applications. MEF can be used for third-party plugin extensibility, or it can bring the benefits of a loosely-coupled plugin-like architecture to regular applications. MEF is a part of the Microsoft .NET Framework, with types primarily under the System.ComponentModel.Composition.* namespaces.

Project Details

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

其他項目地址