public static RateLimitingOptions Block(this RateLimitingOptions options, string name, IPNetwork network)
 {
     return(options.Block(name, ctx => network.Contains(ctx.Connection.RemoteIpAddress)));
 }
 public static RateLimitingOptions Block(this RateLimitingOptions options, string name, Selector <bool> predicate)
 {
     return(options.Block(name, predicate.ToAsync()));
 }
 public static RateLimitingOptions Block(this RateLimitingOptions options, string name, IPAddress address)
 {
     return(options.Block(name, ctx => ctx.Connection.RemoteIpAddress.Equals(address)));
 }