Commentaires sur : [.NET 4.0] Introduction à MEF : Managed Extensibility Framework https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/ Le blog personnel et technique de Sébastien Warin, Chief Technology Officer (CTO) & Creative Technologist Mon, 15 Dec 2014 13:34:30 +0000 hourly 1 https://wordpress.org/?v=5.9.12 Par : MEF – Managed Extensibility Framework | Microsoft Innovation Center Belgique https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3688 Sun, 28 Jul 2013 17:02:21 +0000 https://sebastien.warin.fr/?p=413#comment-3688 […] https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/ […]

]]>
Par : Ghusse https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3523 Thu, 06 Sep 2012 09:35:12 +0000 https://sebastien.warin.fr/?p=413#comment-3523 J’ai trouvé, il faut utiliser IEnumerable<Lazy> et l’attribut [ImportMany(typeof(IMyContract))]

]]>
Par : Ghusse https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3522 Thu, 06 Sep 2012 08:19:53 +0000 https://sebastien.warin.fr/?p=413#comment-3522 Merci pour ce super article ! Vraiment très intéressant et très très complet.

J’essaye de me servir de cet exemple, et je ne trouve pas le type ExportCollection. Est-ce que ça a été remplacé depuis la version beta ?

]]>
Par : Bob https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3495 Wed, 13 Jul 2011 09:00:51 +0000 https://sebastien.warin.fr/?p=413#comment-3495 Bravo Jean-Pierre !

]]>
Par : Chételat Bastien https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3428 Tue, 27 Jul 2010 09:29:38 +0000 https://sebastien.warin.fr/?p=413#comment-3428 Hello!

Merci pour cet article!

Juste une petite suggestion, une version imprimable des articles seraient franchement pas du luxe ;-).

+++

]]>
Par : yannick https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3332 Mon, 29 Mar 2010 10:04:43 +0000 https://sebastien.warin.fr/?p=413#comment-3332 bonjour,
je fais mes premiers pas en .net et je dois créer une appli qu’on pourrait étendre par la suite par ajout de plug in.
en faisait mes recherches j’ai trouvé le framework MEF.
j’ai commencé à lire la doc dessus et le mot « assembly » revient tout le temps à koi est ce qu’il fait reférence.

thx 4 ur answer

]]>
Par : amine https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3326 Sun, 21 Mar 2010 11:59:40 +0000 https://sebastien.warin.fr/?p=413#comment-3326 salut,

le lazy loading est désormais effectué en utilisant la class Lazy

Merci pour cet excellent article

Amine

]]>
Par : Julien Corioland https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3164 Fri, 22 May 2009 15:17:11 +0000 https://sebastien.warin.fr/?p=413#comment-3164 Ah yes bien vu 😉

Merci !

]]>
Par : Sebastien https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3162 Fri, 22 May 2009 14:28:13 +0000 https://sebastien.warin.fr/?p=413#comment-3162 En effet Julien, je ne l’avais pas remarqué !

L’attribut ImportRequiredMetadata a été supprimé du la Preview 5 de MEF (dernière en date).

Pour obtenir le même résultat, il faut préciser le type des métadatas requis dans l’import :

[Import]
public Export<IMyContract, IMyCustomMetadata> MyContract { get; set; }

Voir la discussion sur CP : http://mef.codeplex.com/Thread/View.aspx?ThreadId=53661

]]>
Par : Julien Corioland https://sebastien.warin.fr/2009/02/21/413-net-4-introduction-mef-managed-extensibility-framework/#comment-3161 Fri, 22 May 2009 14:04:52 +0000 https://sebastien.warin.fr/?p=413#comment-3161 Excellent article !!

Par contre, j’ai suivi ton conseil et cherché l’attribut ImportRequiredMetadata suite à ton commentaire sur mon blog. Il semblerait qu’il ait été retiré dans la béta du .NET Framework 4.0…Ou alors ils l’ont bien caché :]

A+

Julien

]]>