Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2007
    Location
    Colorado Springs
    Posts
    16

    .NET Client Multiple Subscriptions

    We are integrating Lightstreamer with a thick application that has the need to be subscribed to multiple tables of data. For example a given window may have up to 3 different types of data that needs to be updated. Using the .NET client API do you create three connections (OpenConnection calls)? We also have the need to unsubscribe and subscribe to different tables (the tables may or may not be contained in the same Data Adapter) as the user navigates through the application. How would this be accomplished? To give you some background, I have used the web client API and what we would like to do is create a master page and have child push pages reference the master page. Each child push page would subscribe to data on load and unsubscribe on unload. How would a similar situation be handled for a thick application using the .NET API?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    With the .NET Client you have the same capabilities of the Web Client to subscribe and unsubscribe to/from tables (possibly coming from different Data Adapters) as part of the same sessions ans using the same connection.

    You will simply call SubscribeTable() and unsubscribeTable() on the LSClient object at any time.

  3. #3
    Member
    Join Date
    Oct 2007
    Location
    Colorado Springs
    Posts
    16
    Thanks for the quick answer. I thought that was the case but wanted to confirm.

  4. #4
    Member
    Join Date
    Jul 2009
    Location
    London
    Posts
    14
    Which one is better: a connection per each subscription or a connection per client application (one connection for all subscriptions)?

  5. #5
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    the best way to go is one connection per client. The library will take care of dispatching the received updates to the correct listener.

 

 

Similar Threads

  1. How to use multiple adapters in one web client
    By sjohn in forum Client APIs
    Replies: 11
    Last Post: January 23rd, 2015, 11:22 AM
  2. Replies: 7
    Last Post: September 11th, 2012, 09:32 AM
  3. Adding or Removing Subscriptions
    By subuta in forum Client APIs
    Replies: 4
    Last Post: December 27th, 2011, 03:03 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 12:48 PM.