04 2023 档案
摘要:public class MyContainer { private readonly Dictionary<Type, object> services = new Dictionary<Type, object>(); public void Register<T>(T service) { s
阅读全文
摘要:.NET Web API 和 Web Services 都是通过 HTTP 协议来提供服务的方式,它们的主要区别在于以下几个方面: 接口方式的不同 Web API 通常使用 RESTful API,即使用 HTTP 动词对资源进行 CRUD 操作,比如 GET、POST、PUT 和 DELETE 请
阅读全文