Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Highlands Ranch

    .Net MetaData Adapter

    I am creating an adapter based on the LiteralBasedProvider to accept user, password, and sessionid from the client. I would like the adapter to monitor a session to another system and return real-time status change events back to the client. I have reviewed the Remote Porfolio Adapter sample code to use as an example.

    Basically the way I read the Remote Portfolio Adapter example there is basically two adapters defined:
    PortfolioMetadataAdapter which is based on the LiteralBasedProvider and has a NotifyUserMessage override to accept user, session and message, (only message is being utilized)
    PortfolioDataAdapter which is based on the IDataProvider and is used to stream data back to the client.

    My question is how the two communicate and how the appropriate portfolio is sent back to the client?

    In my case, I would like the client to send the user, password, and sessionid of the session they established on the other system to the adapter and have the adapter(s) track events created on the other system for that user/session and send back the events to the client in a real-time basis.

    Thanks for any help.

  2. #2
    Join Date
    Jul 2006
    Milan, Italy
    The client will authenticate on the other system and get the sessionid.
    Then it will authenticate on Lightstreamer Server by passing any of the credentials (username, epassword, sessionid) to the client API. Such credentials will be passed yo your Metadata Adapter, which will validate them.
    Then the client will subscribe to an item, which should map your status change events. Such subscription will reach the Data Adapter, which will need to start producing events. The same subscription will go through the Metadata Adapter first, which will be able to decorate the item name with the sessionid or other information, so that the Data Adapter will know what data to produce.

    To understand the above better, please study Chapter 4 of "General Concepts.pdf".



Similar Threads

  1. Replies: 4
    Last Post: October 24th, 2011, 09:33 AM
  2. Metadata Adapter Question
    By dalmy in forum Adapter SDKs
    Replies: 1
    Last Post: July 12th, 2010, 09:38 AM
  3. metadata adapter with user auth example
    By k0nan in forum Adapter SDKs
    Replies: 1
    Last Post: May 12th, 2010, 09:50 AM
  4. Multiple Metadata adapter usage
    By stephenlam in forum Client SDKs
    Replies: 5
    Last Post: April 22nd, 2010, 09:19 AM
  5. Authentication with Metadata Adapter
    By stephenlam in forum Adapter SDKs
    Replies: 4
    Last Post: December 12th, 2008, 10:52 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
All times are GMT +1. The time now is 06:23 AM.