in Darabonba/Core.cs [169:197]
internal static bool AllowRetry(IDictionary dict, int retryTimes, long now)
{
if (retryTimes == 0)
{
return true;
}
if (!dict.Get("retryable").ToSafeBool(false))
{
return false;
}
int retry;
if (dict == null)
{
return false;
}
Dictionary<string, object> dictObj = dict.Keys.Cast<string>().ToDictionary(key => key, key => dict[key]);
if (!dictObj.ContainsKey("maxAttempts"))
{
return false;
}
else
{
retry = dictObj["maxAttempts"] == null ? 0 : Convert.ToInt32(dictObj["maxAttempts"]);
}
return retry >= retryTimes;
}