You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
63
-
/// 32-bit signed integer to specify the time interval in milliseconds.
64
-
/// </summary>
65
-
/// <param name="waitHandle">The handle to wait for.</param>
66
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for <paramref name="waitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
67
-
/// <returns>
68
-
/// <see langword="true"/> if <paramref name="waitHandle"/> received a signal within the specified timeout;
69
-
/// otherwise, <see langword="false"/>.
70
-
/// </returns>
71
-
/// <exception cref="SshException">The connection was closed by the server.</exception>
72
-
/// <exception cref="SshException">The channel was closed.</exception>
73
-
/// <remarks>
74
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
75
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
82
-
/// 32-bit signed integer to specify the time interval in milliseconds.
83
-
/// </summary>
84
-
/// <param name="waitHandleA">The first handle to wait for.</param>
85
-
/// <param name="waitHandleB">The second handle to wait for.</param>
86
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
87
-
/// <returns>
88
-
/// <c>0</c> if <paramref name="waitHandleA"/> received a signal within the specified timeout and <c>1</c>
89
-
/// if <paramref name="waitHandleB"/> received a signal within the specified timeout, or <see cref="WaitHandle.WaitTimeout"/>
90
-
/// if no object satisfied the wait.
91
-
/// </returns>
92
-
/// <exception cref="SshException">The connection was closed by the server.</exception>
93
-
/// <exception cref="SshException">The channel was closed.</exception>
94
-
/// <remarks>
95
-
/// <para>
96
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
97
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
98
-
/// or session event.
99
-
/// </para>
100
-
/// <para>
101
-
/// When both <paramref name="waitHandleA"/> and <paramref name="waitHandleB"/> are signaled during the call,
/// Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed
109
63
/// integer to specify the time interval.
110
64
/// </summary>
111
-
/// <param name="waitHandles">A <see cref="WaitHandle"/> array - constructed using <see cref="CreateWaitHandleArray(WaitHandle[])"/> - containing the objects to wait for.</param>
65
+
/// <param name="waitHandles">A <see cref="WaitHandle"/> array - constructed using <see cref="CreateWaitHandleArray"/> - containing the objects to wait for.</param>
112
66
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or <c>-1</c> to wait indefinitely.</param>
113
67
/// <returns>
114
68
/// The array index of the first non-system object that satisfied the wait.
Copy file name to clipboardExpand all lines: src/Renci.SshNet/SubsystemSession.cs
+3-151Lines changed: 3 additions & 151 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ internal abstract class SubsystemSession : ISubsystemSession
18
18
{
19
19
/// <summary>
20
20
/// Holds the number of system wait handles that are returned as the leading entries in the array returned
21
-
/// in <see cref="CreateWaitHandleArray(WaitHandle[])"/>.
21
+
/// in <see cref="CreateWaitHandleArray"/>.
22
22
/// </summary>
23
23
privateconstintSystemWaitHandleCount=3;
24
24
@@ -310,124 +310,7 @@ protected async Task<T> WaitOnHandleAsync<T>(TaskCompletionSource<T> tcs, int mi
310
310
}
311
311
}
312
312
313
-
/// <summary>
314
-
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
315
-
/// 32-bit signed integer to specify the time interval in milliseconds.
316
-
/// </summary>
317
-
/// <param name="waitHandle">The handle to wait for.</param>
318
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for <paramref name="waitHandle"/> to get signaled, or -1 to wait indefinitely.</param>
319
-
/// <returns>
320
-
/// <see langword="true"/> if <paramref name="waitHandle"/> received a signal within the specified timeout;
321
-
/// otherwise, <see langword="false"/>.
322
-
/// </returns>
323
-
/// <exception cref="SshException">The connection was closed by the server.</exception>
324
-
/// <exception cref="SshException">The channel was closed.</exception>
325
-
/// <remarks>
326
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
327
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
thrownewSshException("Connection was closed by the server.");
348
-
case2:
349
-
thrownewSshException("Channel was closed.");
350
-
case3:
351
-
returntrue;
352
-
caseWaitHandle.WaitTimeout:
353
-
returnfalse;
354
-
default:
355
-
thrownewNotImplementedException(string.Format(CultureInfo.InvariantCulture,"WaitAny return value '{0}' is not implemented.",result));
356
-
}
357
-
}
358
-
359
-
/// <summary>
360
-
/// Blocks the current thread until the specified <see cref="WaitHandle"/> gets signaled, using a
361
-
/// 32-bit signed integer to specify the time interval in milliseconds.
362
-
/// </summary>
363
-
/// <param name="waitHandleA">The first handle to wait for.</param>
364
-
/// <param name="waitHandleB">The second handle to wait for.</param>
365
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or -1 to wait indefinitely.</param>
366
-
/// <returns>
367
-
/// <c>0</c> if <paramref name="waitHandleA"/> received a signal within the specified timeout, and <c>1</c>
368
-
/// if <paramref name="waitHandleB"/> received a signal within the specified timeout.
369
-
/// </returns>
370
-
/// <exception cref="SshException">The connection was closed by the server.</exception>
371
-
/// <exception cref="SshException">The channel was closed.</exception>
372
-
/// <exception cref="SshOperationTimeoutException">The handle did not get signaled within the specified timeout.</exception>
373
-
/// <remarks>
374
-
/// <para>
375
-
/// The blocking wait is also interrupted when either the established channel is closed, the current
376
-
/// session is disconnected or an unexpected <see cref="Exception"/> occurred while processing a channel
377
-
/// or session event.
378
-
/// </para>
379
-
/// <para>
380
-
/// When both <paramref name="waitHandleA"/> and <paramref name="waitHandleB"/> are signaled during the call,
thrownewSshException("Connection was closed by the server.");
403
-
case2:
404
-
thrownewSshException("Channel was closed.");
405
-
case3:
406
-
return0;
407
-
case4:
408
-
return1;
409
-
caseWaitHandle.WaitTimeout:
410
-
thrownewSshOperationTimeoutException("Operation has timed out.");
411
-
default:
412
-
thrownewNotImplementedException(string.Format(CultureInfo.InvariantCulture,"WaitAny return value '{0}' is not implemented.",result));
413
-
}
414
-
}
415
-
416
-
/// <summary>
417
-
/// Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed
418
-
/// integer to specify the time interval.
419
-
/// </summary>
420
-
/// <param name="waitHandles">A <see cref="WaitHandle"/> array - constructed using <see cref="CreateWaitHandleArray(WaitHandle[])"/> - containing the objects to wait for.</param>
421
-
/// <param name="millisecondsTimeout">To number of milliseconds to wait for a <see cref="WaitHandle"/> to get signaled, or -1 to wait indefinitely.</param>
422
-
/// <returns>
423
-
/// The array index of the first non-system object that satisfied the wait.
424
-
/// </returns>
425
-
/// <exception cref="SshException">The connection was closed by the server.</exception>
426
-
/// <exception cref="SshException">The channel was closed.</exception>
427
-
/// <exception cref="SshOperationTimeoutException">No object satisfied the wait and a time interval equivalent to <paramref name="millisecondsTimeout"/> has passed.</exception>
428
-
/// <remarks>
429
-
/// For the return value, the index of the first non-system object is considered to be zero.
0 commit comments