What is difference between System.Threading.Tasks.Dataflow and Microsoft.Tpl.Dataflow

和自甴很熟 提交于 2019-12-06 18:33:16

问题


There are 2 different official TPL Dataflow nuget package. I am confused to choose which one i should to use.

As far as i understand System.Threading.Tasks.Dataflow version is tiny bit newer than other and it seems System.Threading.Tasks.Dataflow is targeted latest versions of .net.

Anyone can explain differences between of those ?


回答1:


Microsoft.Tpl.Dataflow was first released as a component separate from the BCL as part of .net 4.5 - here is a blog post announcing the release

System.Threading.Tasks.Dataflow as a separate package was created as part of the dotnet core release. This archived release history on github shows the point where 4.5.24 of Microsoft.Tpl.Dataflow (the last version on nuget) became 4.5.25-beta-23019 of System.Threading.Tasks.Dataflow (the first version on nuget).

And this old release note explicitly announces the name change.

It appears that the initial version was only for DotNet5.0 (as it was known at the time) but they have since made it backwards compatible.

So, most likely, you want System.Threading.Tasks.Dataflow.



来源:https://stackoverflow.com/questions/39412549/what-is-difference-between-system-threading-tasks-dataflow-and-microsoft-tpl-dat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!