static void Main() { Action f = testMethod;; AsyncTimer test = new AsyncTimer(f, 10, 500); test.Run(); string testString = Console.ReadLine(); }
static void Main(string[] args) { Action<int> test = (number) => Console.WriteLine("{0}", number); AsyncTimer asyncTimer = new AsyncTimer(test, 10, 1000); asyncTimer.Run(); }
public static void Main() { AsyncTimer currTimer = new AsyncTimer(PrintSth, 100, 100); currTimer.Run(); for (int i = 0; i < 100; i++) { Console.WriteLine("Main program action!"); Thread.Sleep(100); } }
static void Main() { var printOnConsole = new AsyncTimer(PrintOnConsole, 5, 900000000); printOnConsole.Run(); var printOnFile = new AsyncTimer(PrintOnFile, 10, 5000); printOnFile.Run(); var showMessageBox = new AsyncTimer(ShowMessageBox, 4, 100000); showMessageBox.Run(); }
static void Main() { var timer = new AsyncTimer(TestMethod, 4, 500); timer.Run(); }