From 9f19c54574656610bbfc3fc7d594ee27f9f44c48 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 21 Oct 2014 19:06:43 +0300 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 9b9636e..4822056 100644 --- a/README.md +++ b/README.md @@ -498,3 +498,23 @@ public class Startup } ``` +IIS hosted configuration example: + +``` cs +public class Startup +{ + public void Configuration(IAppBuilder appBuilder) + { + ... + + //throtting middleware with policy loaded from web.config + appBuilder.Use(typeof(ThrottlingMiddleware), + ThrottlePolicy.FromStore(new PolicyConfigurationProvider()), + new PolicyCacheRepository(), + new CacheRepository(), + null); + + ... + } +} +```