Esempio n. 1
0
 /// <summary>
 /// Set the concurrency limit of the filter
 /// </summary>
 /// <param name="pipe"></param>
 /// <param name="concurrencyLimit"></param>
 /// <returns></returns>
 public static Task SetConcurrencyLimit(this IPipe <CommandContext> pipe, int concurrencyLimit)
 {
     return(pipe.SendCommand <SetConcurrencyLimit>(new { ConcurrencyLimit = concurrencyLimit }));
 }
Esempio n. 2
0
 public static Task SetRateLimit(this IPipe <CommandContext> pipe, int rateLimit)
 {
     return(pipe.SendCommand <SetRateLimit>(new Limit(rateLimit)));
 }