What would be the best way of calling the GenerateRandomBooking()
method 5 times and then delaying the GenerateRandomBids()
by 2-3 seconds in the while loop below of my console application?
private static void Main()
{
SettingsComponent.LoadSettings();
while (true)
{
try
{
GenerateRandomBooking();
GenerateRandomBids();
AllocateBids();
Thread.Sleep(TimeSpan.FromSeconds(5));
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
}
}