title: Injecting the Ninject NamedScope-defining object into its own scope
body: <p>I have an object that is bound in Ninject like this: </p>
  
  <pre><code>Bind&lt;IScopeRoot&gt;().To&lt;ScopeRoot&gt;()
      .DefinesNamedScope("DemoScope"); 
  </code></pre>
  
  <p>There are multiple objects in that scope: </p>
  
  <pre><code>Bind&lt;IRootedObject&gt;().To&lt;RootedObject&gt;()
     .InNamedScape("DemoScope");
  </code></pre>
  
  <p>The problem I run into is that injecting IScopeRoot into a RootedObject will create a new ScopeRoot instance (the root of a new DemoScope) instead of injecting the scope-defining object. </p>
  
  <p>A work-around I used was to create an artificial root object that is nothing but a container for the actual root object, but I feel that is ugly and that it messes up my architecture. </p>
  
  <p>Is there a nice way to inject the scope-defining object into its own scope?</p>