private void InitializeFileChangeListener() { if (_observing != null) { _fileChangeListener.StopObservingItem(_observing); } _observing = ReferencedProjectOutputPath; if (_observing != null) { _fileChangeListener.ObserveItem(_observing); } }
private async void InitializeFileChangeListener() { if (_observing != null) { _fileChangeListener.StopObservingItem(_observing); } await Task.Delay(500).ConfigureAwait(true); _observing = ReferencedProjectOutputPath; if (_observing != null) { _fileChangeListener.ObserveItem(_observing); } }