-
January 21st, 2014, 01:21 AM
#1
Lightstreamer in background? [WinRT]
Hi!
Is there a recommended approach or any suggestions on the best way to incorporate Lightstreamer into a background task? The tasks are triggered in a variety of ways, the most typical of which being time (+/- 15 minute variance) but I'm not sure what the best approach for Lightstreamer would be. The primary goal is to update a Livetile and create toasts as new pertinent updates are sent out but the standard approach seems hard to adapt to a background thread which will continue to function when the app is shut down.
It seems like it might be possible to adapt polling to work, but the long interval and thread shutdown in between periods might cause complications.
Thanks!
-
January 21st, 2014, 09:35 AM
#2
Hi,
If I understood your requirement what you can try to do is to ask for a deferral ( http://msdn.microsoft.com/en-us/libr...ce.getdeferral ), then connect to Lightstreamer in the asynchronous call and never return it.
Just pay attention to not keep too many deferrals pending.
Give it a try and let us know how it goes.
Similar Threads
-
By EricS in forum Client SDKs
Replies: 7
Last Post: January 24th, 2014, 09:25 AM
-
By Vahid in forum Client SDKs
Replies: 3
Last Post: May 20th, 2013, 09:51 AM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: December 20th, 2012, 11:04 AM
-
By carlost81 in forum Client SDKs
Replies: 1
Last Post: July 24th, 2012, 11:32 AM
-
By Test6405 in forum Client SDKs
Replies: 1
Last Post: November 2nd, 2009, 04:55 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:02 AM.
Bookmarks