コード例 #1
0
 void instance_Throttled(object sender, ThottledEventArgs e)
 {
     if (Throttled != null)
     {
         Throttled(sender, e);
     }
 }
コード例 #2
0
 void model_Throttled(object sender, ThottledEventArgs e)
 {
     if (e.WaitTime.TotalSeconds > 4)
     {
         update(string.Format("GGG Server request limit hit, throttling activated. Please wait {0} seconds", e.WaitTime.Seconds), new POEEventArgs(POEEventState.BeforeEvent));
     }
 }