请问WCF如何通过一个类暴露多个接口?
[ServiceContract()]
public interface IxxxService
{
[OperationContract]
string TestStringX(string myValue);
}
[ServiceContract()]
public interface IyyyService
{
[OperationContract]
string TestStringY(string myValue);
}
[ServiceContract()]
public interface IMyService:IxxxService,IyyyService
{
[OperationContract]
string TestStringX(string myValue);
}
public class TestService : MlsService............
可以同时暴露IxxxService,IyyyService和MlsService接口吗?