コード例 #1
0
 int GetMultiplier(MessagePayload toGetDelayFor)
 {
     return (toGetDelayFor.GetAmountSent() - 1) * Multiplier;
 }
 public bool HasExpired(MessagePayload toCheck)
 {
     Logger.Debug("Checking expiry due to repeat limit: {0}", toCheck.Id);
     return toCheck.GetAmountSent() == attempts;
 }
コード例 #3
0
 int GetUnlimitedDelay(MessagePayload toGetDelayFor)
 {
     return toGetDelayFor.GetAmountSent() == 1 
         ? ToStartAt 
         : ToStartAt * GetMultiplier(toGetDelayFor);
 }