private static async Task ReadPortNumber()

in src/Azure.AppService.Tunnel/Agent/DebuggerAgentProcess.cs [69:77]


    private static async Task<int> ReadPortNumber(Process process)
    {
        var output = process.StandardOutput;

        var port = await ExtractKeyWord(output, "Port");
        if (port is null) throw new InvalidOperationException("Port is null");

        return Convert.ToInt32(port);
    }