示例#1
0
 public UrlOptions(string url, int waitTime, int coolDown, int biFlags)
 {
     ID       = Guid.NewGuid();
     Url      = url;
     CoolDown = new UrlCooldown(coolDown);
     WaitTime = waitTime;
     BIFlags  = biFlags;
 }
示例#2
0
 public MQTTCoolDown(UrlCooldown src)
 {
     CooldownTime = src.CooldownTime;
     LastSent     = src.LastSent - TimeSpan.FromHours(2); // make it far in the past to ensure the first trigger
 }
示例#3
0
 public UrlCooldown(UrlCooldown src)
 {
     CooldownTime = src.CooldownTime;
     LastSent     = src.LastSent; // make it far in the past to ensure the first trigger
 }