private void TimerOneShotEventCallback(int id, int msg, int user, int param1, int param2) { if (IsAsync) { Task.Factory.StartNew(() => tickRaiser.Invoke(new EventArgs())); Stop(); } else { OnTick(EventArgs.Empty); Stop(); } }