Exemple #1
0
 public static IAppBuilder UseLeakyBucket(this IAppBuilder app, LeakyBucketConfiguration configuration)
 {
     return(app.Use(typeof(LeakyBucketMiddleware), configuration));
 }
Exemple #2
0
 public LeakyBucketMiddleware(OwinMiddleware next, LeakyBucketConfiguration configuration)
     : base(next)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }