以下代码不适用于 StructureMap 3:
x.For<Environment>()
.LifecycleIs(StructureMap.Pipeline.Lifecycles.GetLifecycle(InstanceScope.HttpContext))
.Use(c => Environment.GetEnvironment("APP"));
x.SelectConstructor(() => new HelpController());
InstanceScope.HttpContext 不工作 StructureMap 3
SelectConstructor() 不适用于 StructureMap 3