Hi I have been trying to get started with MEF 4.0
I have seen examples that suggest I should call
but the composition container I get via:
var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
container = new CompositionContainer(catalog);
does not have a method to ComposeParts or a Compose method with a default constructor.
Instead the Compose method I have access to wants a CompositionBatch object
...but I thought the CompositionBatch was to add manually constructed objects, and by preference we should always use the catalogue!
I am quite confused, it seems that MEF is a moving target and documentation I am finding relates to previous or future versions, it's difficult to get to grips from a beginner point of view.
Does anyone have a link to getting started with MEF that deals with the 'flavour' I have access too. "System.ComponentModel.composition 220.127.116.11" That shows how I start-up a basic hello world WPF application?