title: How to invoke HybridHttpOrThreadLocalScoped in StructureMap 3
body: <p>I am trying to move from Structuremap 2.6.4.1 to 3.1.4.143 but am unable to figure out how to handle HybridHttpOrThreadLocalScoped. None of the SO Q/A I can find seems to work for me...</p>
  
  <p>I have the following code:</p>
  
  <pre><code>using StructureMap;
  using StructureMap.Web;
  
  ObjectFactory.Configure( x =&gt;
  {
      x.For&lt;IRepository&lt;Person&gt;&gt;()
          .HybridHttpOrThreadLocalScoped() // Need the repo to survive for the duration of the thread!
          .Use&lt;Repository_Stub&lt;Person&gt;&gt;()
          .Ctor&lt;IEnumerable&lt;IEntity&gt;&gt;( "seed" ).Is( persons );
  } );
  </code></pre>
  
  <p>that gives me this error:</p>
  
  <pre><code>'StructureMap.Configuration.DSL.Expressions.CreatePluginFamilyExpression&lt;IRepository&lt;Person&gt;&gt;' 
  does not contain a definition for 'HybridHttpOrThreadLocalScoped' and no extension method
  'HybridHttpOrThreadLocalScoped' accepting a first argument of type
  StructureMap.Configuration.DSL.Expressions.CreatePluginFamilyExpression&lt;IRepository&lt;Person&gt;&gt;'
  could be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>Is there a new way to invoke HybridHttpOrThreadLocalScoped?</p>
  
  <p>Thansk in advance!</p>