Skip to content

Commit

Permalink
Fixed usage of MEF to not leverage the global composition host as Sta…
Browse files Browse the repository at this point in the history
…tLights current needs are limited enough to use a simple CompositionContainer
  • Loading branch information
staxmanade committed Jul 2, 2010
1 parent 80f969a commit f09fdcd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/StatLight.Client.Harness/App.xaml.cs
Expand Up @@ -33,10 +33,8 @@ private void Application_Startup(object sender, StartupEventArgs e)
{
try
{
var aggregateCatalog = new AggregateCatalog();
aggregateCatalog.Catalogs.Add(new DeploymentCatalog());
CompositionHost.Initialize(aggregateCatalog);
CompositionInitializer.SatisfyImports(this);
var compositionContainer = new CompositionContainer(new DeploymentCatalog());
compositionContainer.SatisfyImportsOnce(this);
}
catch (ReflectionTypeLoadException rfex)
{
Expand Down

0 comments on commit f09fdcd

Please sign in to comment.