Autofac time driven [tagged] scope

22 Views Asked by At

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

1

There are 1 best solutions below

3
Travis Illig On

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.