/// <summary>
 /// Constructs repository.
 /// ILifetimeScope must be set for resolving ICandleHistoryRepository.
 /// </summary>
 /// <param name="log"></param>
 /// <param name="componentName"></param>
 public CandleGenerationController(ILog log, string componentName, IEnvironment env)
     : base(componentName, log)
 {
     this.log           = log;
     this.componentName = componentName;
     // Build handles chain
     this.handler = new FilterHandler(env, log,
                                      new MidHandler(env,
                                                     new DefaultHandler(null)));
 }
Ejemplo n.º 2
0
 public MidHandler(IEnvironment env, QuoteHandler next)
     : base(next)
 {
     this.env = env;
 }
Ejemplo n.º 3
0
 public FilterHandler(IEnvironment env, ILog log, QuoteHandler next)
     : base(next)
 {
     this.env = env;
     this.log = log;
 }
Ejemplo n.º 4
0
 public DefaultHandler(QuoteHandler next)
     : base(next)
 {
 }
Ejemplo n.º 5
0
 public QuoteHandler(QuoteHandler next)
 {
     _next = next;
 }