How to use WcfFacility Lock and use standard Wcf file settings?
If I register myself like this:
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 get the following error:
The service '{name}' has zero application endpoints (no infrastructure).
If I leave:
.Configure(configurer => configurer.ActAs(new DefaultServiceModel()))
it seems that the behavior in the config is ignored.
What is the correct use here?
source share