.NET Framework Bookmark and Share   
 index > Managed Extensibility Framework > MEF Component Composition designer
 

MEF Component Composition designer

Hello All,

With all the care that must be taken in order to avoid a 'DSLitis', I think that a visual designer (-> graphical DSL) would be of great value for developers using MEF. This designer would allow to:

- Add owned or third-party components (CLR types, COM components or AddIns) to the designer surface.
- Define Contract Types.
- Define Imports of components.
- Define Exports & ExportProperty of components.
- Simulate a binding between the represented components and review composition issues.
- Save the configuration in an XML file that can be later used by a ValueResolver to provide configuration to the CompositionContainer.

The fact that MEF allow composition based on Duck Types & string Meta Data provides some advantages in terms of flexibility, but expose some risk in terms of predictability (hence the 'TryBind' method on the CompositionContainer). Thus, the ability to simulate bindings at design time and view where the issues are would be a great plus in using MEF (of course, we still have to use TryBind at runtime to catch any mistake due to imports that were later added to the released application).

What do you think?

Steve

Stiiifff
Hi Steve!

Thanks for the suggestions. We have started working on some ideas around tooling. We are strating with making sure that debugging of composable applications is easy. Longer term, we will think about explicit composition tools.

Thanks.
Krzysztof Cwalina
Hi Steve!

Thanks for the suggestions. We have started working on some ideas around tooling. We are strating with making sure that debugging of composable applications is easy. Longer term, we will think about explicit composition tools.

Thanks.
Krzysztof Cwalina
Indeed, it's maybe a little early to think about the 'graphical stuff' ;o)

How about building applications by moving & composing components with fingers, like Lego bricks, using Microsoft Surface ? Ok, that was the crazy idea of the day :o) lol

Stiiifff

You can use google to search for other answers

Custom Search

More Threads

• No "hard dependancy" but a new dependancy is introduced.
• Catch the close event in word and Powerpoint for Override in Office Add-ins
• Create a Ribbon Control for MS Project
• How to identify, Is current user a Administrator..?
• "LoadLibrary" for "Com object" inside a dll
• can we design forms with MAPI to have custom regions in folder view area
• Why multi ExportAttribute is not supportted by property?
• CompositionContainer & AOP
• Do you will support event subscribe and publish in future vesion fo MEF?
• Several contributors to unity configuration in app.config ?