0

Are these equivalent syntaxes for setting component lifestyle?

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

Component.For<IBar>()
         .ImplementedBy<Bar>()
         .LifeStyle.Transient
Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275
James Thigpen
  • 869
  • 1
  • 9
  • 25

1 Answers1

1

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
  • 98,863
  • 23
  • 192
  • 275