-> PortScanner added

This commit is contained in:
Kevin Krüger
2022-01-18 09:14:22 +01:00
parent f7b63cb8e1
commit a07655faed
18 changed files with 1301 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PortScanner.Util
{
public static class HelperMethods
{
public static void PauseForXSeconds(int secondsPaused)
{
secondsPaused = (int)TimeSpanUtil.ConvertMillisecondsToSeconds(secondsPaused);
System.Threading.Thread.Sleep(secondsPaused);
}
public static void PauseForXMinutes(int minutesPaused)
{
minutesPaused = (int)TimeSpanUtil.ConvertMinutesToMilliseconds(minutesPaused);
System.Threading.Thread.Sleep(minutesPaused);
}
}
}