コード例 #1
0
        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);

            //}
        }
コード例 #2
0
 public OptimizationController(IOptimizationService opService, ISecuritiesService securitiesService)
 {
     service    = opService;
     secService = securitiesService;
 }
コード例 #3
0
 public BacktestingPortfolioService(IManageBacktestingPortfolios managePort, IOptimizationService op)
 {
     cPortHandler = managePort;
     opService    = op;
 }
コード例 #4
0
 public PlanningService(IPlanningRepository planningRepository, IMapper mapper, IOptimizationService optimizationService)
 {
     _planningRepository  = planningRepository;
     _mapper              = mapper;
     _optimizationService = optimizationService;
 }