File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33var api = new EliteDangerousApi ( ) ;
44
5- api . Start ( ) ;
6-
75api . OnAll ( e =>
86{
97 Console . WriteLine ( $ "Event: { e . Event } ") ;
1412 Console . WriteLine ( $ "New journal file being watched: { e . FullName } ") ;
1513} ) ;
1614
15+ api . Start ( ) ;
16+
1717// api.OnAllJson(e =>
1818// {
1919// Console.WriteLine($"JSON Event: {e.eventName}");
Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ public void Start()
6161 SafeInvoke . Invoke ( handler , file ) ;
6262 } ) ;
6363 _statusWatchers . ForEach ( w => w . OnContentChanged ( Invoke ) ) ;
64-
65-
64+
6665 _statusWatchers . ForEach ( w => w . StartWatching ( ) ) ;
6766 _journalWatcher . StartWatching ( ) ;
6867 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class FileWatcher
1818 private Action < FileInfo > ? _onFileChanged ;
1919 private int _lastLineCount ;
2020 private Timer ? _debounceTimer ;
21- private readonly object _debounceLock = new object ( ) ;
21+ private readonly object _debounceLock = new ( ) ;
2222 private const int DebounceDelayMs = 200 ;
2323
2424 public FileInfo CurrentFile { get ; private set ; }
You can’t perform that action at this time.
0 commit comments