Exemple #1
0
        public static CalculateTechnicalIndicatorContext GetInstance(ICalculateTechnicalIndicatorStrategy strategy)
        {
            if (instance == null)
            {
                instance = new CalculateTechnicalIndicatorContext(strategy);
            }

            return(instance);
        }
Exemple #2
0
 public void ChangeStrategy(ICalculateTechnicalIndicatorStrategy strategy)
 {
     _strategy = strategy;
 }
Exemple #3
0
 private CalculateTechnicalIndicatorContext(ICalculateTechnicalIndicatorStrategy strategy)
 {
     _strategy = strategy;
 }
Exemple #4
0
 public void BuildStrategyPatternParameters()
 {
     _strategy = new ActorModelStrategy();
 }
Exemple #5
0
 public void BuildStrategyPatternParameters()
 {
     _strategy = new WebServicesStrategy();
 }
 public void BuildStrategyPatternParameters()
 {
     _strategy = new RabbitMQStrategy(_exchange, _queueReceiveFrom);
     ProcessHandler.RunRabbitMQConsumersProcesses();
 }