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?
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?