-
December 6th, 2009, 04:54 PM
#1
.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?
-
December 7th, 2009, 03:01 PM
#2
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.
-
December 7th, 2009, 06:09 PM
#3
Thanks for the quick answer. I thought that was the case but wanted to confirm.
-
February 15th, 2010, 12:23 PM
#4
Which one is better: a connection per each subscription or a connection per client application (one connection for all subscriptions)?
-
February 16th, 2010, 09:58 AM
#5
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
-
By LS_Developer in forum Client SDKs
Replies: 14
Last Post: November 24th, 2020, 04:48 PM
-
By sjohn in forum Client SDKs
Replies: 11
Last Post: January 23rd, 2015, 12:22 PM
-
By subuta in forum Client SDKs
Replies: 4
Last Post: December 27th, 2011, 04:03 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 12:23 PM.
Bookmarks