private void CheckIfUpdateNeeded(HttpContext current) { HttpContext.Current = current; //while (true) //{ try { IOptimizationService service = _container.Resolve <IOptimizationService>(); isComplete = false; service.UpdateSecurities(current); isComplete = true; _container.Release(service); } catch (Exception ex) { } //var interval = isComplete ? int.Parse(ConfigurationManager.AppSettings["priceRefreshInterval"]) : 3000; //Thread.Sleep(interval); //} }
public OptimizationController(IOptimizationService opService, ISecuritiesService securitiesService) { service = opService; secService = securitiesService; }
public BacktestingPortfolioService(IManageBacktestingPortfolios managePort, IOptimizationService op) { cPortHandler = managePort; opService = op; }
public PlanningService(IPlanningRepository planningRepository, IMapper mapper, IOptimizationService optimizationService) { _planningRepository = planningRepository; _mapper = mapper; _optimizationService = optimizationService; }