public static RateLimitingOptions Limit(this RateLimitingOptions options, string name, Selector <int> limit, TimeSpan period, Selector <string> discriminator)
 {
     return(options.Limit(name, limit.ToAsync(), period, discriminator.ToAsync()));
 }
 public static RateLimitingOptions Limit(this RateLimitingOptions options, string name, int limit, AsyncSelector <TimeSpan> period, AsyncSelector <string> discriminator)
 {
     return(options.Limit(name, _ => limit, period, discriminator));
 }