5
如何编写具有单个端点但具有多个服务合同的WCF Web服务?具有多个服务合同的单个端点
例子:
[ServiceContract]
public interface IWirelessService
{
[OperationContract]
void AddWireless();
}
[ServiceContract]
public interface IWiredService
{
[OperationContract]
void AddWired();
}
[ServiceContract]
public interface IInternetService
{
[OperationContract]
void AddInternet();
}
让我们觉得像IInternetService是我的主网服务,我要实现IwiredService和IWirelessService在里面,但我想要做的实现他们的classes.Is这可能吗?我怎么解决这个问题?
您是否看到此问题?我认为它有你想要做的答案... [链接](http://stackoverflow.com/questions/334472/run-wcf-servicehost-with-multiple-contracts) – 2012-03-05 13:58:35
谢谢,这实际上是我需要的。 – svlytns 2012-03-05 14:12:36