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 89e9bdd commit ca7d9b9Copy full SHA for ca7d9b9
MyApp/Program.cs
@@ -90,15 +90,9 @@ bool IsPortAvailable(int port) => System.Net.NetworkInformation.IPGlobalProperti
90
app.MapViteHmr(nodeProxy);
91
app.MapFallbackToNode(nodeProxy);
92
93
- // Wait for Angular dev server to start
94
- var timeout = TimeSpan.FromSeconds(60);
95
- var started = DateTime.UtcNow;
96
- while (DateTime.UtcNow - started < timeout)
97
- {
98
- if (IsPortAvailable(4200))
99
- break;
100
- Thread.Sleep(100);
101
- }
+ // Wait for Angular Dev Server to start...
+ ExecUtils.RetryOnException(() =>
+ nodeProxy.Client.GetStringAsync("/").Wait(), timeOut:TimeSpan.FromSeconds(30));
102
}
103
else
104
{
0 commit comments