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
Post a Comment