views:

139

answers:

1

Are these equivalent syntaxes for setting component lifestyle?

Component.For<IFoo>()
         .ImplementedBy<Foo>()
         .LifeStyle.Is(LifestyleType.Transient)

Component.For<IBar>()
         .ImplementedBy<Bar>()
         .LifeStyle.Transient
+1  A: 

Yes, they are.

Until there's a complete documentation on the fluent interface, the best source for information is the tests.

Another source of information is this wiki page.

Mauricio Scheffer