Definition at line 244 of file TimerThread.cs.
245 {
247 {
249 }
251 {
252 return true;
253 }
254 int tickCount = Environment.TickCount;
256 {
258 {
259 System.
Net.
NetEventSource.
Info(
this,
$"TimerThreadTimer#{base.StartTime}::Fire() Not firing ({base.StartTime} <= {tickCount} < {base.Expiration})",
"Fire");
260 }
261 return false;
262 }
263 bool flag = false;
265 {
267 {
269 {
270 System.
Net.
NetEventSource.
Info(
this,
$"TimerThreadTimer#{base.StartTime}::Fire() Firing ({base.StartTime} <= {tickCount} >= " +
base.Expiration +
")",
"Fire");
271 }
278 }
279 }
280 if (flag)
281 {
282 try
283 {
288 callback(this, tickCount, context);
289 }
291 {
293 {
294 throw;
295 }
297 {
299 }
300 }
301 }
302 return true;
303 }
static bool IsFatal(Exception exception)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
readonly object _queueLock
static bool IsTickBetween(int start, int end, int comparand)
References System.Net.TimerThread.TimerNode._callback, System.Net.TimerThread.TimerNode._context, System.Net.TimerThread.TimerNode._queueLock, System.Net.TimerThread.TimerNode._timerState, System.Net.NetEventSource.Error(), System.Net.NetEventSource.Info(), System.Net.ExceptionCheck.IsFatal(), System.Net.TimerThread.IsTickBetween(), System.Net.NetEventSource.Log, System.Net.TimerThread.TimerNode.Next, System.Net.TimerThread.TimerNode.Prev, and System.Environment.TickCount.
Referenced by System.Net.TimerThread.TimerQueue.Fire().