Hello,
Thank you ahead of time for your brain cyclesJ¡
I¡¯m in one process space. But I want to host multiple servicehosts in that space.
Each servicehost will run a service instance I instantiate in code and provide to it.
Foreach(¡
Servicehost(myServiceInstance);
Each instance of ¡°myServiceInstance¡± will be of the same type just a different instantiation.
At first glance you might think of endpoints but endpoints are really just different communication paths hosted by the servicehost into the same instance.
I can what I want with custom code already.
My problem is doing it all from configuration. The problem lies in the fact that when you set up a you config
<Service name=¡±namespace.type¡±
Is used to map the instance you fed into servicehost with its respective configuration information.
But since I¡¯m using many instance of the same type into different servicehosts in the same process space, how does
WCF differentiate between them
With custom code I can give them different base address or different endpoint addresses into different servicehosts.
Configuration seems limited in this regard.
Does anyone know any way around this
Thanks.