Autofac.Mef 7.0.0

Autofac.Mef

Managed Extensibility Framework (MEF) integration for Autofac.

Build status

Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.

Quick Start

The Autofac/MEF integration allows MEF catalogs to be registered with the ContainerBuilder using the RegisterComposablePartCatalog() extension method. If you register a component using MEF and want to provide Autofac components into that MEF component, use the Exported() extension.

var builder = new ContainerBuilder();
var catalog = new DirectoryCatalog(@"C:\MyExtensions");
builder.RegisterComposablePartCatalog(catalog);
builder.RegisterType<Component>()
       .Exported(x => x.As<IService>().WithMetadata("SomeData", 42));

Check out the Autofac MEF integration documentation for more information.

Get Help

Need help with Autofac? We have a documentation site as well as API documentation. We're ready to answer your questions on Stack Overflow or check out the discussion forum.

Showing the top 20 packages that depend on Autofac.Mef.

Packages Downloads
ConfigR
Write your .NET configuration files in C#. Fed up with XML soup? Frustrated that app settings can only be strings? Want to do more in your configuration file than just define app settings? Then ConfigR is for you!
18
ConfigR
Write your .NET configuration files in C#. Fed up with XML soup? Frustrated that app settings can only be strings? Want to do more in your configuration file than just define app settings? Then ConfigR is for you!
19
ConfigR
Write your .NET configuration files in C#. Fed up with XML soup? Frustrated that app settings can only be strings? Want to do more in your configuration file than just define objects? Then ConfigR is for you!
19
ScriptCs.Core
ScriptCs.Core is the core framework assembly for scriptcs.
15
ScriptCs.Core
ScriptCs.Core is the core framework assembly for scriptcs.
17
ScriptCs.Core
ScriptCs.Core is the core framework assembly for scriptcs.
19
ScriptCs.Core
ScriptCs.Core is the core framework assembly for scriptcs.
20
ScriptCs.Core
ScriptCs.Core is the core framework assembly for scriptcs.
28

Release notes are at https://github.com/autofac/Autofac.Mef/releases

.NET 6.0

.NET 7.0

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
7.0.0 21 03/13/2024
6.1.0 21 02/11/2024
6.0.1 23 02/11/2024
6.0.0 25 02/11/2024
5.0.0 20 02/11/2024
4.1.0 23 02/11/2024
4.0.0 23 02/11/2024
3.0.3 23 02/11/2024
3.0.2 23 02/11/2024
3.0.1 23 02/11/2024
3.0.0 19 02/11/2024
3.0.0-beta2 19 02/11/2024
3.0.0-beta 21 02/11/2024
2.6.3.862 20 02/11/2024
2.6.2.859 25 02/11/2024
2.6.1.841 22 02/11/2024
2.5.2.830 22 02/11/2024
2.5.1.827 19 02/11/2024
2.4.5.724 23 02/11/2024
2.4.4.705 22 02/11/2024
2.4.3.700 24 02/11/2024
2.4.2.696 24 02/11/2024