19 using System.Collections.Generic;
37 _algorithm = algorithm;
44 public void Step(DateTime utcNow)
46 _insightScoreFunction?.
Score(
this, utcNow);
55 _insightScoreFunction = insightScoreFunction;
65 if (insightScoreFunction.TryConvert(out model))
79 public void Expire(IEnumerable<Symbol> symbols)
86 foreach (var symbol
in symbols)
99 public void Cancel(IEnumerable<Symbol> symbols)
108 public void Expire(IEnumerable<Insight> insights)
110 if (insights ==
null)
115 var currentUtcTime = _algorithm.UtcTime;
116 foreach (var insight
in insights)
118 insight.Expire(currentUtcTime);
126 public void Cancel(IEnumerable<Insight> insights)