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