Revision 70f12b36 trunk/Pithos.Client.WPF/AppBootstrapper.cs
b/trunk/Pithos.Client.WPF/AppBootstrapper.cs | ||
---|---|---|
57 | 57 |
catalog.Catalogs.Add(new AssemblyCatalog(type.Assembly)); |
58 | 58 |
} |
59 | 59 |
|
60 |
container = new CompositionContainer(catalog); |
|
60 |
container = new CompositionContainer(catalog,true);
|
|
61 | 61 |
|
62 | 62 |
var batch = new CompositionBatch(); |
63 | 63 |
|
... | ... | |
76 | 76 |
protected override object GetInstance(Type serviceType, string key) |
77 | 77 |
{ |
78 | 78 |
string contract = string.IsNullOrEmpty(key) ? AttributedModelServices.GetContractName(serviceType) : key; |
79 |
var exports = container.GetExportedValues<object>(contract); |
|
79 |
var exports = container.GetExportedValues<object>(contract);
|
|
80 | 80 |
|
81 | 81 |
if (exports.Any()) |
82 | 82 |
return exports.First(); |
Also available in: Unified diff