Hi My function is so simple
private static bool IsUpdatedBefore(string filterName)
{
try
{
var returnCollection = SomeFunction(filterName);
if (returnCollection .Count > 0)
{
return true;
}
else
{
return false;
}
}
catch (Exception ex)
{
Log.WriteLine(ex.ToString());
return false;
}
}
And I want to modify the code to return true if SomeFunction() takes more than an hour. But I have some problem
- I can't change SomeFunction()
- I can't use multi-thread structure
So In this case, how can I change this without modifying SomeFunction() and without using multithread?