/// <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)));
 }
Example #2
0
 public MidHandler(IEnvironment env, QuoteHandler next)
     : base(next)
 {
     this.env = env;
 }
Example #3
0
 public FilterHandler(IEnvironment env, ILog log, QuoteHandler next)
     : base(next)
 {
     this.env = env;
     this.log = log;
 }
Example #4
0
 public DefaultHandler(QuoteHandler next)
     : base(next)
 {
 }
Example #5
0
 public QuoteHandler(QuoteHandler next)
 {
     _next = next;
 }