34 return disposable.DisposeSafely(error =>
Log.
Error(error));
46 public static bool DisposeSafely(
this IDisposable disposable, Action<Exception> errorHandler)
48 if (disposable ==
null)
58 catch (ObjectDisposedException)
63 catch (Exception error)