Hi,
I'm trying out your .Net API (nuget package). I'm wondering how to await the callback onDataReceived function? The DataReceived function never gets hit. It is a sample console app. Below is my code:
public void Launch() { var realtime = DataServices.Instance.Realtime; counter = 0; _singleRequest = realtime.Request("GBP=", "BID", DataReceived); _singleSubscription = realtime.Subscribe("EUR=", "BID", DataReceived); } private void DataReceived(SingleFieldValue value) { Console.WriteLine("{0}:{1}({2}) {3}", counter, value.Ric, value.Field, value.RawValue); counter += 1; if (counter == 5) { _singleRequest = null; _singleSubscription.Stop(); _singleSubscription = null; Console.WriteLine("Stopped"); } }