private async Task DelayIfNeeded() { if (_delayInSeconds > 0) { await _userLoadTestHttpClient.LogUserDelay(async() => await Task.Delay(_delayInSeconds * 1000)); } }
public static Task DelayUserClick(this IUserLoadTestHttpClient client, int min = 500, int max = 1000) { return(client.LogUserDelay(() => Task.Delay(Rand.Random(min, max)))); }