Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 21, 2014
1 parent f4e74d8 commit 9f19c54
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

...
}
}
```

0 comments on commit 9f19c54

Please sign in to comment.