MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Main

Method Main

plugins/cs/HttpMonitor/Program.cs:184–206  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

182 class Program
183 {
184 static void Main(string[] args)
185 {
186 DebugViewPlugin.ProcessCommandline(args);
187 foreach (var arg in args)
188 {
189 if (arg.ToLower().Contains("--verbose"))
190 Settings.Verbose = true;
191 }
192
193 if (args.Length < 1)
194 {
195 Console.WriteLine("usage: httpmonitor <url>");
196 return;
197 }
198 string url = args[0];
199
200 Console.WriteLine("Poll interval: " + Settings.PollInterval);
201 Console.WriteLine("URL: " + url);
202 Console.WriteLine("Monitoring...");
203
204 Log log = new Log(url);
205 log.Monitor();
206 }
207 }
208}

Callers

nothing calls this directly

Calls 2

ProcessCommandlineMethod · 0.80
MonitorMethod · 0.80

Tested by

no test coverage detected