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