摘要: 1. 新建一个类 public class StringTest { public string Str { get; set; } /// <summary> /// 隐士转换 /// </summary> /// <param name="name"></param> public static 阅读全文
posted @ 2020-03-17 21:40 碗粥 阅读(121) 评论(0) 推荐(0) 编辑
摘要: WebApi和WCF一样可以自宿主,即可以不用搭载在网站上。 1.引入必须的dll 2.开启监听 var config = new HttpSelfHostConfiguration("http://localhost:3333"); config.Routes.MapHttpRoute("defa 阅读全文
posted @ 2020-03-17 13:35 碗粥 阅读(319) 评论(0) 推荐(0) 编辑