示例#1
0
 internal BinaryHeapNode<DateTime> CreateNode(DateTime aDateTime, TimerCallback aCallback)
 {
     BinaryHeapNode<DateTime> node = iHeap.Insert(aDateTime);
     iCallbacks[node] = aCallback;
     return node;
 }
示例#2
0
 /// <summary>
 /// Register a callback. Use the returned TimerCallback to schedule it for
 /// invocation.
 /// </summary>
 /// <param name="aCallback"></param>
 /// <returns></returns>
 public ITimerCallback RegisterCallback(Action aCallback)
 {
     TimerCallback timerCallback = new TimerCallback(aCallback, this, iTimerThread);
     return timerCallback;
 }