コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     Bus?.Dispose();
     _disposed = true;
 }
コード例 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            _subscription?.Dispose();
            _bus?.Dispose();
            _disposed = true;
        }
コード例 #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     _liveLock.Set();
     _subscription?.Dispose();
     Bus?.Dispose();
     _disposed = true;
 }
コード例 #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (_disposed)
     {
         return;
     }
     if (disposing)
     {
         lock (_listeners) {
             _listeners?.ForEach(l => l?.Dispose());
         }
         _queue?.RequestStop();
         _bus?.Dispose();
     }
     _disposed = true;
 }