-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConsoleArguments.cs
50 lines (45 loc) · 2.17 KB
/
ConsoleArguments.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#region Copyright (c) 2014, Roland Pihlakas
/////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Roland Pihlakas.
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
//
/////////////////////////////////////////////////////////////////////////////////////////
#endregion Copyright (c) 2014, Roland Pihlakas
using System.Collections.Generic;
namespace PingTool
{
partial class Program
{
private const string ArgShowHelp = "-help";
private const string ArgOutageTimeBeforeGiveUpSeconds = "-outageTimeBeforeGiveUpSeconds";
private const string ArgOutageConditionNumPings = "-outageConditionNumPings";
private const string ArgPassedPingIntervalMs = "-passedPingIntervalMs";
private const string ArgFailedPingIntervalMs = "-failedPingIntervalMs";
private const string ArgPingTimeoutMs = "-pingTimeoutMs";
private const string ArgHost = "-host";
private const string ArgSourceHost = "-sourceHost";
#if DEBUG && false
private static bool ValueShowHelp = false;
private static int ValueOutageTimeBeforeGiveUpSeconds = 18;
private static int ValueOutageConditionNumPings = 3;
private static int ValuePassedPingIntervalMs = 1500;
private static int ValueFailedPingIntervalMs = 500;
private static int ValuePingTimeoutMs = 1000;
private static List<string> ValueHosts = new List<string>();
private static List<string> ValueSourceHosts = new List<string>();
#else
private static bool ValueShowHelp = false;
private static int ValueOutageTimeBeforeGiveUpSeconds = 180;
private static int ValueOutageConditionNumPings = 3;
private static int ValuePassedPingIntervalMs = 15000;
private static int ValueFailedPingIntervalMs = 5000;
private static int ValuePingTimeoutMs = 10000;
private static List<string> ValueHosts = new List<string>(); //TODO: use hashset instead
private static List<string> ValueSourceHosts = new List<string>(); //TODO: use hashset instead
#endif
}
}