I am confused about the castle wcf facility registration.
I read some blog posts for BasicHttpBinding. But could not find a clear easy sample to setup a net.tcp setup.
I want to host the service from a console application...
I wrote something like this... can you see a problem here?
_container = new WindsorContainer();
_container.AddFacility<WcfFacility>();
_container.Register(Component.For<IMembershipService>().ImplementedBy<MembershipService>()
.AsWcfService(
new DefaultServiceModel()
.AddEndpoints(WcfEndpoint
.BoundTo(new NetTcpBinding() { PortSharingEnabled = false })
.At("net.tcp://localhost/MembershipService")
)
.PublishMetadata()
)
);