Why is there both a System.Net.Http and System.Web.Http namespace?

后端 未结 5 1409
渐次进展
渐次进展 2021-01-31 01:34

Just a simple question as I\'m studying the various class libraries available in .NET. I noticed that there\'s a System.Net.Http namespace and a System.Web.H

5条回答
  •  猫巷女王i
    2021-01-31 02:11

    System.Web heavily depends on IIS web server, which can only be hosted on a Windows machine. As Microsoft is heading to open source and is starting to support multiple platforms like Linux and Mac, they need to extract their functionality which will be independent of IIS server. As a result, System.Net is independent of IIS features and is deployable to different platforms.

提交回复
热议问题