/// <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 })); }
public static Task SetRateLimit(this IPipe <CommandContext> pipe, int rateLimit) { return(pipe.SendCommand <SetRateLimit>(new Limit(rateLimit))); }