Amazon.KinesisTap.Core/Sources/DirectorySource.cs
/// <summary>
/// When it is detected that the directory to observe doesn't exist, shut down the existing watcher and then start
/// polling for the directory to exist.
/// </summary>
When it is detected that the directory to observe doesn't exist, shut down the existing watcher and then start
polling for the directory to exist.
When it is detected that the directory to observe doesn ' t exist shut down the existing watcher and then start polling for the directory to exist .
public override void Reset()
        {
            _logger?.LogInformation($"Resetting DirectorySource id {this.Id}.");
            Stop();
            if (_watcher != null)
            {
                _watcher.Dispose();
                _watcher = null;
            }
            base.Reset();
        }
public override void Reset ( ) { _logger ? . LogInformation ( $" Resetting DirectorySource id  { this . Id } . " ) ; Stop ( ) ; if ( _watcher != null ) { _watcher . Dispose ( ) ; _watcher = null ; } base . Reset ( ) ; }
When it is detected that the directory to observe doesn't exist, shut down the existing watcher and then start
polling for the directory to exist.
When it is detected that the directory to observe doesn ' t exist shut down the existing watcher and then start polling for the directory to exist .