コード例 #1
0
 private void InititalizeStrategy()
 {
     _ruleCache    = new RuleCache();
     _rulePoller   = new RulePoller(_ruleCache);
     _targetPoller = new TargetPoller(_ruleCache, _rulePoller);
 }
コード例 #2
0
 public TargetPoller(RuleCache ruleCache, RulePoller rulePoller)
 {
     _ruleCache  = ruleCache;
     _rulePoller = rulePoller;
 }
コード例 #3
0
 public RulePoller(RuleCache ruleCache)
 {
     _ruleCache = ruleCache;
     _random    = new Random();
 }