how to run a polling method on windows store app C# XAML -


in app after login success, need start thread connecting wcf service sync data between app , backend web. process need carry on every 1 minute , should able start , stop service ui well. please advice me proper way of doing it.

currently i've done adding async void method , inside method i'm running while(isrunning) loop. ui can accessing "isrunning" variable , make false stop process. not entirely accurate because if method in middle of http request wcf service, not interrupt.

i can't use background worker because sync function on wcf service return pdf files (as data) , come byte[]

my objective run polling method keeping ui responsiveness , impactless entire app.

if want further clarification please ask.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -