WCF Integration Facility and Self-Hosted Services
Posted
by IanT8
on Stack Overflow
See other posts from Stack Overflow
or by IanT8
Published on 2010-03-24T20:34:09Z
Indexed on
2010/03/24
21:13 UTC
Read the original article
Hit count: 477
wcf
|castle-windsor
I'm self-hosting several services where I do this to register the service:
host = new ServiceHost(typeof(MyService));
host.Open();
Behind the scenes, wcf instantiates my service via the default constructor.
Is it possble to use the WCF Integration Facility of Castle Windsor to get WCF to call on Windsor to create the service when I am self-hosting?
The example seems shows IIS hosted services where the 1st line of the MyService.svc file looks like:
<%@ServiceHost language=c# Debug="true"
Service="Microsoft.ServiceModel.Samples.CalculatorService"
Factory=WindsorServiceHostFactory%>
where presumably a factory is used by wcf to instantiate the service instance.
© Stack Overflow or respective owner