I am trying to parse data from several websites continuously. I would like this action to be preformed individually in a loop in an asynchronous manner until the program is clos
It's easy enough to create a method to loop continuously and parse a single site over and over again. Once you have that method, you can call it once on each site in the list:
private async void ParseSite(Site s)
{
while (true)
{
await s.ParseData();
}
}
public void ParseAll(List siteList)
{
foreach (var site in siteList)
{
ParseSite(site);
}
}