question

Upvotes
Accepted
17 3 5 9

Summaries.Definition("MyRIC").GetData() not working when invoking from WindowsFrom Application

Hi,

I am trying to develop a WinForms Application that retrieves data from Refinitiv using Refinitiv Data Platform. I have encountered a problem while retrieving data with the following statement: Summaries.Definition("MyRIC").GetData(). Despite working when it is run from a Console Application, it doesn't work when I use a WinForm application, the workflow advances until the previously mentioned statement is reached and it is blocked indefinitely without throwing any exception.

Please, could you give me any insights into this issue?

Thanks in advance.



eikon-data-apirdp-apirefinitiv-data-platformc#.net
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
9.7k 49 38 60

Hi @YERAY SOSA ALONSO,

Have you tried awaiting the request?

var response = await Summaries.Definition("MyRIC").GetDataAsync();

I don't know the nature of your application, but are you driving the request from the GUI? The above request is what you should be doing.

As for your current application, did you try setting a breakpoint after the GetData() statement to see if it reaches that point? I've successfully built a WPF application that does use the historical Summaries request without issue.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

The problem was that I was using synchronous methods. Thanks for your quick response.

Click below to post an Idea Post Idea