We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7271623 commit 9788887Copy full SHA for 9788887
dotnet/src/webdriver/Internal/PortUtilities.cs
@@ -32,6 +32,9 @@ public static class PortUtilities
32
/// Finds a random, free port to be listened on.
33
/// </summary>
34
/// <returns>A random, free port to be listened on.</returns>
35
+ /// <exception cref="InvalidOperationException">
36
+ /// Thrown when a free port cannot be found due to socket binding issues.
37
+ /// </exception>
38
public static int FindFreePort()
39
{
40
using var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
0 commit comments