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); + + ... + } +} +```