@@ -253,7 +253,7 @@ internal PowerShell GetPowerShell(bool isReadLine = false)
253
253
/// </param>
254
254
/// <param name="isReadLine">Indicates whether this is for a PSReadLine command.</param>
255
255
/// <returns>The <see cref="RunspaceHandle" /> for the current frame.</returns>
256
- internal RunspaceHandle GetRunspaceHandle ( CancellationToken cancellationToken , bool isReadLine )
256
+ internal RunspaceHandle GetRunspaceHandle ( bool isReadLine , CancellationToken cancellationToken )
257
257
{
258
258
if ( _isDisposed )
259
259
{
@@ -264,10 +264,10 @@ internal RunspaceHandle GetRunspaceHandle(CancellationToken cancellationToken, b
264
264
// is in process.
265
265
if ( isReadLine && ! _powerShellContext . IsCurrentRunspaceOutOfProcess ( ) )
266
266
{
267
- GetRunspaceHandleImpl ( cancellationToken , isReadLine : false ) ;
267
+ GetRunspaceHandleImpl ( false , cancellationToken ) ;
268
268
}
269
269
270
- return GetRunspaceHandleImpl ( cancellationToken , isReadLine ) ;
270
+ return GetRunspaceHandleImpl ( isReadLine , cancellationToken ) ;
271
271
}
272
272
273
273
@@ -284,7 +284,7 @@ internal RunspaceHandle GetRunspaceHandle(CancellationToken cancellationToken, b
284
284
/// The <see cref="Task{RunspaceHandle}.Result" /> property will return the
285
285
/// <see cref="RunspaceHandle" /> for the current frame.
286
286
/// </returns>
287
- internal async Task < RunspaceHandle > GetRunspaceHandleAsync ( CancellationToken cancellationToken , bool isReadLine )
287
+ internal async Task < RunspaceHandle > GetRunspaceHandleAsync ( bool isReadLine , CancellationToken cancellationToken )
288
288
{
289
289
if ( _isDisposed )
290
290
{
@@ -295,10 +295,10 @@ internal async Task<RunspaceHandle> GetRunspaceHandleAsync(CancellationToken can
295
295
// is in process.
296
296
if ( isReadLine && ! _powerShellContext . IsCurrentRunspaceOutOfProcess ( ) )
297
297
{
298
- await GetRunspaceHandleImplAsync ( cancellationToken , isReadLine : false ) . ConfigureAwait ( false ) ;
298
+ await GetRunspaceHandleImplAsync ( false , cancellationToken ) . ConfigureAwait ( false ) ;
299
299
}
300
300
301
- return await GetRunspaceHandleImplAsync ( cancellationToken , isReadLine ) . ConfigureAwait ( false ) ;
301
+ return await GetRunspaceHandleImplAsync ( isReadLine , cancellationToken ) . ConfigureAwait ( false ) ;
302
302
}
303
303
304
304
/// <summary>
@@ -517,7 +517,7 @@ private AsyncQueue<RunspaceHandle> NewHandleQueue()
517
517
return queue ;
518
518
}
519
519
520
- private RunspaceHandle GetRunspaceHandleImpl ( CancellationToken cancellationToken , bool isReadLine )
520
+ private RunspaceHandle GetRunspaceHandleImpl ( bool isReadLine , CancellationToken cancellationToken )
521
521
{
522
522
if ( isReadLine )
523
523
{
@@ -527,7 +527,7 @@ private RunspaceHandle GetRunspaceHandleImpl(CancellationToken cancellationToken
527
527
return CurrentFrame . Queue . Dequeue ( cancellationToken ) ;
528
528
}
529
529
530
- private async Task < RunspaceHandle > GetRunspaceHandleImplAsync ( CancellationToken cancellationToken , bool isReadLine )
530
+ private async Task < RunspaceHandle > GetRunspaceHandleImplAsync ( bool isReadLine , CancellationToken cancellationToken )
531
531
{
532
532
if ( isReadLine )
533
533
{
0 commit comments