Results 1 to 2 of 2
  1. #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!

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  1. Connection Issues (SSL related?) [WinRT]
    By EricS in forum Client SDKs
    Replies: 7
    Last Post: January 24th, 2014, 09:25 AM
  2. Replies: 3
    Last Post: May 20th, 2013, 09:51 AM
  3. Lightstreamer WinRT Client Lib is Available
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: December 20th, 2012, 11:04 AM
  4. Lightstreamer running in background
    By carlost81 in forum Client SDKs
    Replies: 1
    Last Post: July 24th, 2012, 11:32 AM
  5. Replies: 1
    Last Post: November 2nd, 2009, 04:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:59 PM.