public DataSourceDispatcher(
            IStockDataDataSource assetDataDataSource, IPricesDataSource pricesDataSouce, IOptionChainDataSource optionChainDataSource,
            IFinancialDataSource financialDataSource, IRiskFreeRatesDataSource riskFreeRatesDataSource,
            IAssetTypeDataSource assetTypeDataSource, IStatisticsDataSource statisticsDataSource, IIndexesDataSource indexesDataSource,
            ICacheManager cacheManager)
        {
            //TODO: Implementar un data source builder para poder elegir. Por ejemplo: se puede usar Yahoo, Nasdaq y Reuters para traer los balances
            //

            this.assetDataDataSource     = assetDataDataSource;
            this.pricesDataSouce         = pricesDataSouce;
            this.optionChainDataSource   = optionChainDataSource;
            this.financialDataSource     = financialDataSource;
            this.riskFreeRatesDataSource = riskFreeRatesDataSource;
            this.assetTypeDataSource     = assetTypeDataSource;
            this.statisticsDataSource    = statisticsDataSource;
            this.indexesDataSource       = indexesDataSource;
            this.cacheManager            = cacheManager;
        }
Exemple #2
0
 public DataSourcesController(IDataSource dataSourceManager, IPricesDataSource pricesDataSource)
 {
     this.dataSource       = dataSourceManager;
     this.pricesDataSource = pricesDataSource;
 }