public static CreatePluginFamilyExpression <TPlugin> TransientOrHybridHttpScoped <TPlugin>(this CreatePluginFamilyExpression <TPlugin> expression)
        {
            if (BootstrapRegistry.MaintainAspNetCompatibility)
            {
                return(expression.HybridHttpOrThreadLocalScoped());
            }

            return(expression);
        }
コード例 #2
0
 /// <summary>
 /// Tells the container that it should return one unique instance per HTTP context.
 /// </summary>
 public StructureMapMapping <TInterface, TImplementation> HttpContextOrThreadLocalScoped()
 {
     _for.HybridHttpOrThreadLocalScoped();
     return(this);
 }