示例代码:
public class Service1
{
public int Service1()
{
....
}
}
public class Service2
{
public int Service2()
{
...
var service1 = new Service1();
var count = service1.Service1();
...
}
}
类和方法都通过 WCF 公开。