(int requestPID)
| 162 | } |
| 163 | |
| 164 | static bool DoPassiveMode(int requestPID) { |
| 165 | |
| 166 | bool doPassive = passive; |
| 167 | |
| 168 | if (!doPassive) { |
| 169 | if (processActivityTracker.ContainsKey(requestPID)) { |
| 170 | |
| 171 | if (processActivityTracker[requestPID].IsRunning && processActivityTracker[requestPID].ElapsedMilliseconds < 1000) { |
| 172 | doPassive = true; |
| 173 | } else { |
| 174 | processActivityTracker[requestPID].Reset(); |
| 175 | } |
| 176 | |
| 177 | } else { |
| 178 | var timer = new Stopwatch(); |
| 179 | processActivityTracker[requestPID] = timer; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | return doPassive; |
| 184 | } |
| 185 | |
| 186 | static void TriggerAuthTimer(int requestPID) { |
| 187 | if (processActivityTracker.ContainsKey(requestPID)) { |
nothing calls this directly
no outgoing calls
no test coverage detected