Example #1
0
 public TagRuleChangeExecutorService(
     IOptions <TagRuleExecutorConfiguration> settings,
     ILogger <TagRuleChangeExecutorService> logger,
     ProcessInfoStatistics statistics,
     IRtConnector connector)
 {
     this.settings               = settings.Value;
     this.logger                 = logger;
     this.processInfo            = statistics;
     this.connector              = connector;
     this.cacheTags              = new Dictionary <string, IRtTag>();
     this.tagRuleChangeEvaluator = new TagRuleChangeEvaluator <string>(ActionOnChange, this.settings.DefaultTolerance, this.settings.DefaultDiscardValue);
 }
 public TagRuleToDatabaseService(
     IOptions <TagRuleToDatabaseConfiguration> settings,
     IDatabaseManager database,
     ILogger <TagRuleToDatabaseService> logger,
     ProcessInfoStatistics processInfo,
     IRtConnector connector)
 {
     this.settings               = settings.Value;
     this.database               = database;
     this.logger                 = logger;
     this.processInfo            = processInfo;
     this.connector              = connector;
     this.cacheTags              = new Dictionary <string, IRtTag>();
     this.tagRuleChangeEvaluator = new TagRuleChangeEvaluator <string>(ActionOnChange, this.settings.DefaultTolerance, this.settings.DefaultDiscardValue);
 }