Commit Graph

3 Commits

Author SHA1 Message Date
Stefano Raggi 8f115795c5 Fix FineFundamental universe selection resource leak
The FineFundamentalSubscriptionEnumeratorFactory used in combination with SingleEntryDataCacheProvider and DefaultDataProvider was never disposing of the underlying file stream, leaving files open.
2018-02-08 16:04:04 +01:00
Michael Handschuh a03cfe0077 Ignore ObjectDisposedException in DisposeSafely
No point in reporting this error since that is the objective of this function.

Add test for swallowing ObjectDiposedException that verifies that DisposeSafely
returns true and doesn't invoke the error handler when the object being disposed
throws an ObjectDisposedException
2017-11-02 11:46:55 -04:00
Michael Handschuh b71e8f3a7c Add DisposeSafely extension methods
Add DisposableExtensions to hold extension methods for IDisposable.
Add two overloads of DisposeSafely. This will allow you to call
myDisposable.DisposeSafely() and it will wrap the call in a
try/catch and log the error. The other overload allows you to
handler the error using an Action<Exception> errorHandler parameter
2016-10-07 03:28:31 -04:00