Mercurial > pub > ImplabNet
diff Implab/Components/Disposable.cs @ 208:7d07503621fe v2
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)
IRunnable is now disposable
Code cleanups, suppressed some CodeAnalysis warnings
author | cin |
---|---|
date | Sun, 13 Nov 2016 18:28:17 +0300 |
parents | 240aa6994018 |
children | 9ee78a345738 |
line wrap: on
line diff
--- a/Implab/Components/Disposable.cs Wed Nov 09 12:03:22 2016 +0300 +++ b/Implab/Components/Disposable.cs Sun Nov 13 18:28:17 2016 +0300 @@ -1,5 +1,6 @@ using Implab.Diagnostics; using System; +using System.Diagnostics.CodeAnalysis; using System.Threading; namespace Implab.Components { @@ -81,6 +82,7 @@ } } + [SuppressMessage("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly", Justification = "Dipose(bool) and GC.SuppessFinalize are called")] public void Dispose() { if (Interlocked.Increment(ref m_disposed) == 1) { Dispose(true);