@@ -253,7 +253,7 @@ internal PowerShell GetPowerShell(bool isReadLine = false)
253253 /// </param>
254254 /// <param name="isReadLine">Indicates whether this is for a PSReadLine command.</param>
255255 /// <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 )
257257 {
258258 if ( _isDisposed )
259259 {
@@ -264,10 +264,10 @@ internal RunspaceHandle GetRunspaceHandle(CancellationToken cancellationToken, b
264264 // is in process.
265265 if ( isReadLine && ! _powerShellContext . IsCurrentRunspaceOutOfProcess ( ) )
266266 {
267- GetRunspaceHandleImpl ( cancellationToken , isReadLine : false ) ;
267+ GetRunspaceHandleImpl ( isReadLine : false , cancellationToken ) ;
268268 }
269269
270- return GetRunspaceHandleImpl ( cancellationToken , isReadLine ) ;
270+ return GetRunspaceHandleImpl ( isReadLine , cancellationToken ) ;
271271 }
272272
273273
@@ -284,7 +284,7 @@ internal RunspaceHandle GetRunspaceHandle(CancellationToken cancellationToken, b
284284 /// The <see cref="Task{RunspaceHandle}.Result" /> property will return the
285285 /// <see cref="RunspaceHandle" /> for the current frame.
286286 /// </returns>
287- internal async Task < RunspaceHandle > GetRunspaceHandleAsync ( CancellationToken cancellationToken , bool isReadLine )
287+ internal async Task < RunspaceHandle > GetRunspaceHandleAsync ( bool isReadLine , CancellationToken cancellationToken )
288288 {
289289 if ( _isDisposed )
290290 {
@@ -295,10 +295,10 @@ internal async Task<RunspaceHandle> GetRunspaceHandleAsync(CancellationToken can
295295 // is in process.
296296 if ( isReadLine && ! _powerShellContext . IsCurrentRunspaceOutOfProcess ( ) )
297297 {
298- await GetRunspaceHandleImplAsync ( cancellationToken , isReadLine : false ) . ConfigureAwait ( false ) ;
298+ await GetRunspaceHandleImplAsync ( isReadLine : false , cancellationToken ) . ConfigureAwait ( false ) ;
299299 }
300300
301- return await GetRunspaceHandleImplAsync ( cancellationToken , isReadLine ) . ConfigureAwait ( false ) ;
301+ return await GetRunspaceHandleImplAsync ( isReadLine , cancellationToken ) . ConfigureAwait ( false ) ;
302302 }
303303
304304 /// <summary>
@@ -517,7 +517,7 @@ private AsyncQueue<RunspaceHandle> NewHandleQueue()
517517 return queue ;
518518 }
519519
520- private RunspaceHandle GetRunspaceHandleImpl ( CancellationToken cancellationToken , bool isReadLine )
520+ private RunspaceHandle GetRunspaceHandleImpl ( bool isReadLine , CancellationToken cancellationToken )
521521 {
522522 if ( isReadLine )
523523 {
@@ -527,7 +527,7 @@ private RunspaceHandle GetRunspaceHandleImpl(CancellationToken cancellationToken
527527 return CurrentFrame . Queue . Dequeue ( cancellationToken ) ;
528528 }
529529
530- private async Task < RunspaceHandle > GetRunspaceHandleImplAsync ( CancellationToken cancellationToken , bool isReadLine )
530+ private async Task < RunspaceHandle > GetRunspaceHandleImplAsync ( bool isReadLine , CancellationToken cancellationToken )
531531 {
532532 if ( isReadLine )
533533 {
0 commit comments