Is there a BackgroundWorker replacement for .NET Compact Framework 3.5?

北慕城南 提交于 2019-11-26 16:45:51

问题


I want to use something similar to the BackgroundWorker, which is known from the full .NET Framework, on mobile devices. Sadly it is not available in the compact framework.

What can I use instead?


回答1:


There is an MSDN site discussing the Background Processing Techniques on the CF.

The most common option is to use ThreadPool.QueueUserWorkItem instead of a BackgroundWorker, although there are other options.




回答2:


There is implementation of BackgroundWorker for CF: http://www.danielmoth.com/Blog/2004/12/backgroundworker-sample.html




回答3:


Here is an implementation that was created using Reflector. You could use Reflector to check out various implementations within the .NET framework




回答4:


There is a framework, called Smart Device Framework by OpenNETCF, which tries to fill the gap between the compact framework and the full .NET framework. This framework contains and provides a BackgroundWorker implementation.

This framework is available as a community version, which can be used for free.

From the old version 1.x is also the source code directly available from here (scroll down to the last link). This source code is similar to the link, which @Filip Navara provided.



来源:https://stackoverflow.com/questions/1323596/is-there-a-backgroundworker-replacement-for-net-compact-framework-3-5

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