开发者

Async WCF-call slow on Windows Phone 7

I'm trying to write a small WCF-service (self hosted basicHttp) to receive mouse coordinates from the phones 开发者_开发技巧touchscreen. First I tried to write a sync OneWay-operation but I couldn't get it to work with the phone. It seems I can only write async operations? Isn't a sync OneWay-operation almost as much async as a real async method? Anyway I got it working with the async operation-pattern. But. It's very very slow. I can get about one message through per second, maybee a little more. Is this to be expected or is there any way of speeding this up with async operations? I don't need it to bee async for any particular reason other then WP7 demands it...


WP7 only supports async operations, to avoid developers writing code that blocks the UI, and thus causing a bad user experience.

Having a app that sends the touch-coordinates (there's no "mouse" for WP7) seems a bit strange to me, what's it for? Also, are you sending on when the user is moving the finger(s) around or on tap, or for all of it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜