1234567891011121314151617181920212223242526 |
- // <auto-generated/>
- // ReSharper disable CheckNamespace
- namespace RSTP_DSLink.Logging.LogProviders
- {
- using System;
-
- #if LIBLOG_EXCLUDE_CODE_COVERAGE
- using System.Diagnostics.CodeAnalysis;
-
- [ExcludeFromCodeCoverage]
- #endif
- internal class DisposableAction : IDisposable
- {
- private readonly Action _onDispose;
-
- public DisposableAction(Action onDispose = null)
- {
- _onDispose = onDispose;
- }
-
- public void Dispose()
- {
- if(_onDispose != null) _onDispose.Invoke();
- }
- }
- }
|