MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.35k stars 456 forks source link

BaseCacheManager 'rethrows' exceptions losing stack trace #303

Open ndrwrbgs opened 4 years ago

ndrwrbgs commented 4 years ago

There are ways to 'rethrow' the exception directly rather than throw ex again (which will overwrite the StackTrace and says that the exception came from BaseCacheManager rather than the underlying cache handle.

ndrwrbgs commented 4 years ago

[I plan to submit a PR for this]