You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [To be expanded][Polly readme](https://github.com/App-vNext/Polly/wiki/Cache) or [To be expanded][deep doco on the Polly wiki](https://github.com/App-vNext/Polly/wiki/Cache).
48
+
49
+
50
+
// Or (1c): Configure by dependency injection within ASP.NET Core
51
+
// See https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory
52
+
// and https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection#registering-your-own-services
53
+
54
+
// (In this example we choose to pass a whole PolicyRegistry by dependency injection rather than the individual policy, on the assumption the webapp will probably use multiple policies across the app.)
For many more configuration options and usage examples of the main Polly `CachePolicy`, see the [main Polly readme](https://github.com/App-vNext/Polly/wiki/Cache) and [deep doco on the Polly wiki](https://github.com/App-vNext/Polly/wiki/Cache).
37
87
38
88
39
89
# Release notes
@@ -43,6 +93,7 @@ For details of changes by release see the [change log](CHANGELOG.md).
*[@seanfarrow](https://github.com/seanfarrow) and [@reisenberger](https://github.com/reisenberger) - Initial caching architecture in the main Polly repo
47
98
*[@kesmy](https://github.com/kesmy) - original structuring of the build for msbuild15, in the main Polly repo
0 commit comments