-
September 19th, 2006, 05:25 PM
#1
.NET DataProvider
basically if i sum this up correctly
i need to create a class that implements Lightstreamer.Interfaces.Data.IDataProvider
and override the methods?
Public Sub Init(ByVal parameters As System.Collections.IDictionary, ByVal configFile As String) Implements Lightstreamer.Interfaces.Data.IDataProvider.Init
End Sub
Public Function IsSnapshotAvailable(ByVal itemName As String) As Boolean Implements Lightstreamer.Interfaces.Data.IDataProvider.IsSnap shotAvailable
End Function
Public Sub SetListener(ByVal eventListener As Lightstreamer.Interfaces.Data.IItemEventListener) Implements Lightstreamer.Interfaces.Data.IDataProvider.SetLis tener
End Sub
Public Sub Subscribe(ByVal itemName As String) Implements Lightstreamer.Interfaces.Data.IDataProvider.Subscr ibe
End Sub
Public Sub Unsubscribe(ByVal itemName As String) Implements Lightstreamer.Interfaces.Data.IDataProvider.Unsubs cribe
End Sub
am i on the right track?
-
September 20th, 2006, 10:10 AM
#2
Yes. And an instance of this class will be created and used by the .NET Remote Server.
You also have to instruct the .NET Remote Server on how to load your adapter class by specifying the class name in the Remote Server configuration.
This is accomplished in different ways, depending on how the Remote Server is started:
- In the configuration of the Proxy Adapter mounted on Lightstreamer Server, if Piped Mode is used
- On the command line, at Remote Server manual launch, if Socket Mode is used
- Directly in your code, in the DataProviderServer object instantiation, if you choose to run the Remote Server (in Socket Mode) by your own main
The Lightstreamer\sdk_for_dotnet-adapters\doc\ReadMe.pdf document gives an introduction to the different modes.
Similar Threads
-
By pluczak in forum Adapter SDKs
Replies: 5
Last Post: April 16th, 2018, 04:26 PM
-
By rsouissi in forum Adapter SDKs
Replies: 3
Last Post: February 12th, 2009, 10:31 AM
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 02:31 PM.
Bookmarks