简体   繁体   English

与.net Core 2.1的Flurl兼容性

[英]Flurl compatibility to .net core 2.1

In .NET Core 2.1 there is HttpClient completly rewritten. 在.NET Core 2.1中,完全重写了HttpClient。 There were many imporvements like it uses websockets and etc now. 现在有很多改进,例如使用websockets等。 It also fixes concurrency problems. 它还可以解决并发问题。 I want to ask if FLurl utilizes new .NET core HttpClient or uses olderone? 我想问一下FLurl是否使用新的.NET核心HttpClient或使用更旧的? If older one is the case so when/if it is going to be updated? 如果是老版本,那么何时/是否要更新?

As noted in the comments, Flurl targets .NET Standard, which effectively defines a contract for HttpClient, and the runtime you're targeting in your app provides the implementation . 如评论中所述,Flurl面向.NET Standard,后者有效地定义了HttpClient的合同 ,而您在应用中定位的运行时提供了实现 So yes, if your app targets .NET Core 2.1, then Flurl will use the .NET Core 2.1 implementation of HttpClient. 因此,是的,如果您的应用程序针对.NET Core 2.1,则Flurl将使用HttpClient的.NET Core 2.1实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM