EasyText, EasyLicense 的作者, https://github.com/EasyHelper Good Good Study,Day Day Up.

 

摘要: 新建Rest服务接口: [ServiceContract]public interface IService1{ [OperationContract] string GetData(int value);}接着新建一个服务实现类:public class Service1 : IService1{ public string GetData(int value) { int i = 0; int j = 5 / i; return string.Format("You entered: {0}", value); }}在这里让Service1 抛出”divided by 阅读全文
posted @ 2011-06-20 19:08 LoveJenny 阅读(3491) 评论(3) 推荐(4) 编辑
EasyText, EasyLicense 的作者, https://github.com/EasyHelper Good Good Study,Day Day Up.