internal BinaryHeapNode<DateTime> CreateNode(DateTime aDateTime, TimerCallback aCallback) { BinaryHeapNode<DateTime> node = iHeap.Insert(aDateTime); iCallbacks[node] = aCallback; return node; }
/// <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; }