Esempio n. 1
0
 StockDataCollection LoadNyseData()
 {
     SampleUtilities.DoIoIntensiveOperation(2.5, cts.Token);
     if (cts.Token.IsCancellationRequested)
     {
         return(null);
     }
     return(new StockDataCollection(MakeNyseSecurityInfo()));
 }
Esempio n. 2
0
        StockDataCollection LoadFedHistoricalData()
        {
            SampleUtilities.DoIoIntensiveOperation(3.0 * speedFactor, cts.Token);
            if (cts.Token.IsCancellationRequested)
            {
                return(null);
            }

            return(new StockDataCollection(MakeFedSecurityInfo()));
        }