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