public void Stop()
        {
            if (_state == ServiceState.Stopped)
            {
                return;
            }

            _fileAssembler.StopAssembling();
            _settingsExchanger.UnSubscribeFromSettingsSender();
            _settingsExchanger.UnSubscribeFromSettingsReceiver();

            _state = ServiceState.Stopped;
        }
        public void Stop()
        {
            if (_status != ServiceStatus.Waiting)
            {
                return;
            }

            ImageWatcherHelper.DisposeImageWatcher(ref _imageWatcher, _imageWatcher_EndOfFileEventDetected);
            _settingsExchanger.UnSubscribeFromSettingsSender();
            _settingsExchanger.UnSubscribeFromSettingsReceiver();

            _status = ServiceStatus.Stopped;
        }