I need to develop an application for WinCE 5.0 that connects / synchronizes data with a regular PC application that offers a web service with which I can talk with a mobile (industrial) device.
Since it is obvious that the code will be difficult to maintain on the side of the mobile device (check the connection β after completion: check the availability of the web service β upon completion: check if the mobile device is suitable for synchronization β when the data exchange is completed) I would like to use the synchronous method programming with await s.
I found a few code snippets of Daniel Grunwald, which is the minimal implementation of the material needed by the compiler for the async / await function, Together with the Parallel Library Task for .Net 3.5 (which I had to slightly modify, because some methods that are not called do not exist with required signature), which, for example, implements a task type, looks promising.
So far, no solution has been created, because I lack the implementation of TaskCompletionSource . I decompiled recent mscorlib using ILSpy, but the code is not used - there are too many types to use that are not in CF.
At this point, I wonder if this project will fail because I will never run VS 2008 (which I have to use in ordner for target smart devices) in order to use the C # 5 compiler (maybe there is a workaround? ), or CF does not have decisive types for TaskCompletionSource (which I will probably need, since I want to make events expected), or that the TPL3.5 + Grunwald snippet + TCS implementation will be built, but will never work.
Can someone more experienced please appreciate my intentions? I would like to hear your comments, ideas and alternative approaches. Thanks.
Refresh Aaron Stainback message indicates that it should be possible to build CF 3.5 with VS2012. This should solve at least a problem with the compiler.
David
source share