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