Код: Выделить всё
void UpdateSomeSQLRows(uint retryCount = 3)
{
try
{
// Some Code
}
catch (Exception e)
{
retryCount--;
if (retryCount != 0)
UpdateSomeSQLRows(retryCount);
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... with-retry