clean up
This commit is contained in:
@@ -13,17 +13,16 @@ internal class Program
|
||||
{
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
string? url = null;
|
||||
string? url;
|
||||
string? body = null;
|
||||
string? header = null;
|
||||
string? token = null;
|
||||
string? methodHttp = null;
|
||||
string? header;
|
||||
string? token;
|
||||
string? methodHttp;
|
||||
string? time;
|
||||
long lTime;
|
||||
string? yn;
|
||||
int nThreads;
|
||||
int nThread = 1;
|
||||
Stopwatch sw;
|
||||
|
||||
using var client = new HttpClient();
|
||||
Console.WriteLine("Load Test");
|
||||
@@ -31,7 +30,7 @@ internal class Program
|
||||
{
|
||||
Console.WriteLine("Insert Method Http (GET/POST): ");
|
||||
methodHttp = Console.ReadLine();
|
||||
} while (string.IsNullOrEmpty(methodHttp) && (methodHttp?.ToUpper() != "GET" || methodHttp?.ToUpper() != "POST"));
|
||||
} while (string.IsNullOrEmpty(methodHttp) && (methodHttp?.ToUpper() != "GET" || methodHttp.ToUpper() != "POST"));
|
||||
|
||||
do
|
||||
{
|
||||
@@ -53,9 +52,9 @@ internal class Program
|
||||
{
|
||||
Console.WriteLine("Are Tokens required? (Y/N)");
|
||||
yn = Console.ReadLine();
|
||||
} while(string.IsNullOrEmpty(yn) && (yn?.ToLower() != ConsoleKey.Y.ToString().ToLower() || yn?.ToLower() != ConsoleKey.N.ToString().ToLower()));
|
||||
} while(string.IsNullOrEmpty(yn) && (yn?.ToLower() != ConsoleKey.Y.ToString().ToLower() || yn.ToLower() != ConsoleKey.N.ToString().ToLower()));
|
||||
|
||||
if (yn?.ToLower() == "y")
|
||||
if (yn.ToLower() == "y")
|
||||
{
|
||||
ConsoleKey keyPressed;
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user