How to Open close refresh many requests in an Interactive Provider C#

moez.rebai
moez.rebai Newcomer
edited January 9 in EMA

Is there an example on how to manage requests ( open, close, refresh, ..) comming from consumers to an interactive provider ?

Answers

  • Hello @moez.rebai,

    All the examples in the EMA SDK package demonstrate how to handle and reject requests from the consumers. In case of multiple requests, your application would have to treat each request individually.

    I would recommend that you start from the 100 series examples in the SDK and build on top of that - https://github.com/Refinitiv/Real-Time-SDK/tree/master/CSharp/Ema/Examples/Training/IProvider

  • Ok I see, just to confirm my understanding :

    A consumer after opening and item, this request will be intercepted by the IProvider and will handle it, now What I need to confirm is how the consumer can send a close request for the opened item and how th provider will handle it ?

  • wasin.w
    wasin.w admin
    edited January 9

    Hello @moez.rebai

    Closing the Request

    An application can use OmmConsumer.unregister(Item_handle) method to unsubscribe item request.

    An application gets the item handle from the following ways:

    • the item_handle is returned from the OmmConsumer.RegisterClient() method call when subscribing a single item to the Provider
    • The IOmmConsumerEvent.Handle property on the OnRefreshMsg(), OnUpdateMsg() callback method. This case is for an application that subscribes to a Batch item.

    Please check the Consumer 300_MP_Close example for more detail.

    On the Provider side, please check the Provider 300_MP_Close example for more detail.