views:

10

answers:

1

I see that i can specify this behavior in xml by using the following:

<component
  id="notification"
  service="Acme.Crm.Services.INotificationService, Acme.Crm"
  type="Acme.Crm.Services.EmailNotificationService, Acme.Crm"
  inspectionBehavior="none">
</component>

But how do I do this using fluent registration?

A: 

I found a solution (but I didn't like it)

        container.Register(Component.For<SomeClassWithPropertyWhichWindsorWillAutoInject>()
            .Configuration(Attrib.ForName("inspectionBehavior").Eq("none"))
Marius
You can wrap it in an extension method...
Krzysztof Koźmic

related questions