Beispiel #1
0
        protected override void Dispose(bool disposing)
        {
            _eventAggregator.Unsubscribe(_healthSub);
            Robustness.Instance.SafeCall(() => _subscriber?.Dispose());
            Robustness.Instance.SafeCall(() => _publisher?.Dispose());

            base.Dispose(disposing);
        }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            Robustness.Instance.SafeCall(() => _slaveMessageSubscriber?.Dispose());

            Robustness.Instance.SafeCall(() => _publisher?.Dispose());

            _slaveMessageSubscriber = null;

            _eventAggregator.Unsubscribe(_healthSub);
            _eventAggregator.Unsubscribe(_volumeGenSub);
            _eventAggregator.Unsubscribe(_retrySub);
            _eventAggregator.Unsubscribe(_subRem);
            _eventAggregator.Unsubscribe(_checkGroupSub);
            _eventAggregator.Unsubscribe(_subGroupRemoved);
            _eventAggregator.Unsubscribe(_processAddedSub);
            _eventAggregator.Unsubscribe(_volErrorSub);

            base.Dispose(disposing);
        }