private void InitializeFileChangeListener()
        {
            if (_observing != null)
            {
                _fileChangeListener.StopObservingItem(_observing);
            }

            _observing = ReferencedProjectOutputPath;
            if (_observing != null)
            {
                _fileChangeListener.ObserveItem(_observing);
            }
        }
Example #2
0
        private async void InitializeFileChangeListener()
        {
            if (_observing != null)
            {
                _fileChangeListener.StopObservingItem(_observing);
            }

            await Task.Delay(500).ConfigureAwait(true);

            _observing = ReferencedProjectOutputPath;
            if (_observing != null)
            {
                _fileChangeListener.ObserveItem(_observing);
            }
        }