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

Method Monitor

plugins/cs/HttpMonitor/Program.cs:64–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 public void Monitor()
65 {
66 if (IsRangeAvailable())
67 {
68 Util.DebugWrite("HTTP/1.1 section 14.35.1 Byte Ranges available");
69 }
70 else
71 {
72 Util.DebugWrite("HTTP/1.1 section 14.35.1 Byte Ranges NOT available");
73 }
74
75 var lastLines = Get();
76 foreach (var line in Get())
77 Trace.Write(line);
78 while (true)
79 {
80 Thread.Sleep(Settings.PollInterval);
81 var lines = Get();
82 if (lines.Count != lastLines.Count)
83 {
84 TraceDiff(lastLines, lines);
85 }
86 lastLines = lines;
87 }
88 }
89
90 public List<string> Get()
91 {

Callers 1

MainMethod · 0.80

Calls 2

DebugWriteMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected