File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Terminal.Gui/ConsoleDrivers Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ internal class FakeMainLoop : IMainLoopDriver
4
4
{
5
5
public Action < ConsoleKeyInfo > MockKeyPressed ;
6
6
7
- public FakeMainLoop ( IConsoleDriver IConsoleDriver = null )
7
+ public FakeMainLoop ( IConsoleDriver consoleDriver = null )
8
8
{
9
9
// No implementation needed for FakeMainLoop
10
10
}
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ internal class NetEvents : IDisposable
14
14
#if PROCESS_REQUEST
15
15
bool _neededProcessRequest ;
16
16
#endif
17
- public NetEvents ( IConsoleDriver IConsoleDriver )
17
+ public NetEvents ( IConsoleDriver consoleDriver )
18
18
{
19
- _consoleDriver = IConsoleDriver ?? throw new ArgumentNullException ( nameof ( IConsoleDriver ) ) ;
19
+ _consoleDriver = consoleDriver ?? throw new ArgumentNullException ( nameof ( consoleDriver ) ) ;
20
20
_inputReadyCancellationTokenSource = new ( ) ;
21
21
22
22
Task . Run ( ProcessInputQueue , _inputReadyCancellationTokenSource . Token ) ;
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ internal class NetMainLoop : IMainLoopDriver
25
25
26
26
/// <summary>Initializes the class with the console driver.</summary>
27
27
/// <remarks>Passing a IConsoleDriver is provided to capture windows resizing.</remarks>
28
- /// <param name="IConsoleDriver ">The console driver used by this Net main loop.</param>
28
+ /// <param name="consoleDriver ">The console driver used by this Net main loop.</param>
29
29
/// <exception cref="ArgumentNullException"></exception>
30
- public NetMainLoop ( IConsoleDriver IConsoleDriver )
30
+ public NetMainLoop ( IConsoleDriver consoleDriver )
31
31
{
32
- ArgumentNullException . ThrowIfNull ( IConsoleDriver ) ;
32
+ ArgumentNullException . ThrowIfNull ( consoleDriver ) ;
33
33
34
34
if ( ! ConsoleDriver . RunningUnitTests )
35
35
{
36
- _netEvents = new ( IConsoleDriver ) ;
36
+ _netEvents = new ( consoleDriver ) ;
37
37
}
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ internal class WindowsMainLoop : IMainLoopDriver
29
29
private readonly CancellationTokenSource _inputHandlerTokenSource = new ( ) ;
30
30
private MainLoop ? _mainLoop ;
31
31
32
- public WindowsMainLoop ( IConsoleDriver IConsoleDriver )
32
+ public WindowsMainLoop ( IConsoleDriver consoleDriver )
33
33
{
34
- _consoleDriver = IConsoleDriver ?? throw new ArgumentNullException ( nameof ( IConsoleDriver ) ) ;
34
+ _consoleDriver = consoleDriver ?? throw new ArgumentNullException ( nameof ( consoleDriver ) ) ;
35
35
36
36
if ( ! ConsoleDriver . RunningUnitTests )
37
37
{
38
- _winConsole = ( ( WindowsDriver ) IConsoleDriver ) . WinConsole ;
38
+ _winConsole = ( ( WindowsDriver ) consoleDriver ) . WinConsole ;
39
39
_winConsole ! . _mainLoop = this ;
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments