Esempio n. 1
0
 /// <summary>
 /// Start Method for invoking the actions
 /// </summary>
 public void Start()
 {
     foreach (var func in Reminder.GetInvocationList())
     {
         ThreadPool.QueueUserWorkItem((o) => func.DynamicInvoke((string)o), Msg);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Start Method for invoking the actions
 /// </summary>
 public void Start()
 {
     foreach (var func in Reminder.GetInvocationList())
     {
         ReminderThread = new Thread(() => func.DynamicInvoke(Msg));
         ReminderThread.Start();
         ReminderThread.Join();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Start Method for invoking the actions
 /// </summary>
 public void Start()
 {
     foreach (var func in Reminder.GetInvocationList())
     {
         ReminderTask = new Task(() => func.DynamicInvoke(Msg));
         ReminderTask.Start();
         ReminderTask.Wait();
     }
 }
Esempio n. 4
0
 public void Start()
 {
     foreach (var item in Reminder.GetInvocationList())
     {
         ReminderTask = new Task(() => {
             item.DynamicInvoke(Msg);
             Thread.Sleep(Delay);
         });
         ReminderTask.Start();
         ReminderTask.Wait();
     }
 }
Esempio n. 5
0
 public void Start()
 {
     foreach (var item in Reminder.GetInvocationList())
     {
         ThreadPool.QueueUserWorkItem((o) => {
             string msg = (string)o;
             item.DynamicInvoke(msg);
             Thread.Sleep(Delay);
         }, Msg);
     }
     return;
 }