I host several services on my own, where I do this to register the service:
host = new ServiceHost(typeof(MyService));
host.Open();
Behind the scenes, wcf starts my service through the default constructor.
Is it possible to use the WCF Integration Facility for Castle Windsor to force WCF to call Windsor to create a service when I'm hosting?
The example shows that IIS, where the first line of the MyService.svc file looks like this:
<%@ServiceHost language=c# Debug="true"
Service="Microsoft.ServiceModel.Samples.CalculatorService"
Factory=WindsorServiceHostFactory%>
where presumably a factory is used by wcf to instantiate the service.
Iant8 source
share