I'm trying to host a WCF service inside a console app using Castle-
Windsor 2.5 (.NET 4) with the following code:
new WindsorContainer()
.AddFacility<WcfFacility>()
.Register(
Component.For<IMyService>().ImplementedBy<MyService>()
.ActAs(new DefaultServiceModel()
.AddEndpoints(
WcfEndpoint.BoundTo(new
BasicHttpBinding()).At("http://localhost:1010/MyService"),
WcfEndpoint.BoundTo(MetadataExchangeBindings.CreateMexHttpBinding()).At("http://
localhost:1010/MyService/mex"))
));
I don't have and prefer not to have any config in my app.config for
WCF if possible.
This however doesn't seem to work (doesn't complain but WcfTestUtil
can't see the service).
Am I missing anything?
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.