Beispiel #1
0
        /// <inheritdoc/>
        public void Stop()
        {
            try
            {
                if (_serviceHealthDependent)
                {
                    _healthCheckingService.DiagnosticFailedEvent -= OnDiagnosticFailed;
                    _healthCheckingService.DiagnosticPassedEvent -= OnDiagnosticPassed;
                }

                _subscribePolling.StopPolling();
            }
            finally
            {
                _adapter.Disconnect();
            }
        }