uon-nuget / UoN.ExpressiveAnnotations.NetCore

Annotation-based conditional validation library.
Other
29 stars 12 forks source link

Rewrite ProcessStorage and RequestStorage using injected MemoryCache #13

Closed MmmBerry closed 5 years ago

MmmBerry commented 6 years ago

The ProcessStorage and RequestStorage classes should be re-written to use .NetCore's MemoryCache service, dependency-injected with two different lifetimes (pre-request and per-process). Some investigation required to determine best practice for injecting the same service with two different lifetimes for two different classes - use a custom class for one of them which inherits from MemoryCache? Or can this now be specified directly in .Net Core's built-in DI?