The "new" syntax for Lifecycles, which is also available in Structuremap 2, is the following
x.For<Environment>()
.LifecycleIs<HttpContextLifecycle>()
.Use(c => Environment.GetEnvironment("APP"));
EDIT:
The replacement for SelectConstructor
is now under PolicyExpression
x.Policies.ConstructorSelector(...);
There's a change to the way ConstructorSelector
works. Best idea is to have a look at the Test source, to see how it it used.