protected override void Dispose(bool disposing) { _eventAggregator.Unsubscribe(_healthSub); Robustness.Instance.SafeCall(() => _subscriber?.Dispose()); Robustness.Instance.SafeCall(() => _publisher?.Dispose()); base.Dispose(disposing); }
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); }