I'm after sort of singleton scope which auto-disposes itself in configured time interval. Tried to employ pooled instances, but it lacks the API to evict the cache. Does such scope exist ? What is the proper way to implement it ? Thanks
I'm after sort of singleton scope which auto-disposes itself in configured time interval. Tried to employ pooled instances, but it lacks the API to evict the cache. Does such scope exist ? What is the proper way to implement it ? Thanks
Autofac does not have any out-of-the-box concept of disposing a scope based on a time interval. This is something you'd have to create and manage in your application code. there is no "proper way" to implement it necessarily because it will be based on your application needs.