What are the benefits for several servicehosts? Does one ServiceHost support several simultaneous connections on one endpoint?
问题 I'm thinking of self-hosting my WCF service instead of using IIS. A big question for me is whether I need to instantiate multiple servicehosts as IIS does or one wil be enough. Do muptiple servicehosts give any benefit except security reasons dut to isolation? Can one servicehost serve multiple connections on one endpoint simultaneously? 回答1: There's no benefit or choice, really - one ServiceHost (instance of that class) can host exactly one service, and for each service, you need a separate