public static CreatePluginFamilyExpression <TPlugin> TransientOrHybridHttpScoped <TPlugin>(this CreatePluginFamilyExpression <TPlugin> expression) { if (BootstrapRegistry.MaintainAspNetCompatibility) { return(expression.HybridHttpOrThreadLocalScoped()); } return(expression); }
/// <summary> /// Tells the container that it should return one unique instance per HTTP context. /// </summary> public StructureMapMapping <TInterface, TImplementation> HttpContextOrThreadLocalScoped() { _for.HybridHttpOrThreadLocalScoped(); return(this); }