James Thigpen
James Thigpen

Reputation: 869

Windsor Fluent Interface Lifestyle

Are these equivalent syntaxes for setting component lifestyle?

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

Component.For<IBar>()
         .ImplementedBy<Bar>()
         .LifeStyle.Transient

Upvotes: 0

Views: 269

Answers (1)

Mauricio Scheffer
Mauricio Scheffer

Reputation: 99730

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.

Upvotes: 1

Related Questions