How do I use the Castle WcfFacility and have it use the standard Wcf config file settings?
If I register like so:
container.Register(
AllTypes.Pick()
.FromAssemblyNamed("{ServicesAssembly}") // <-- service assembly here
.If(type => type.Name.EndsWith("Service"))
.WithService.FirstInterface()
.Configure(configurer => configurer.LifeStyle.Transient)
.Configure(configurer => configurer.Named(configurer.Implementation.Name))
.Configure(configurer => configurer.ActAs(new DefaultServiceModel()))
);
I receive the following error:
Service '{name}' has zero application (non-infrastructure) endpoints.
If I leave off:
.Configure(configurer => configurer.ActAs(new DefaultServiceModel()))
it seems as though the behaviors in the config are ignored.
What is the correct usage here?