Run() public method

Causes the action specified in the constructor to be executed. Infrastructure.
public Run ( Manos.ManosApp app ) : void
app Manos.ManosApp /// A ///
return void
Example #1
0
        public static Timeout AddTimeout(TimeSpan begin, TimeSpan timespan, IRepeatBehavior repeat, object data, TimeoutCallback callback)
        {
            Timeout t = new Timeout(begin, timespan, repeat, data, callback);

            ITimerWatcher timer;

            timer = context.CreateTimerWatcher(begin, timespan, delegate {
                t.Run(app);
                if (!t.ShouldContinueToRepeat())
                {
                    t.Stop();
                    timer.Dispose();
                }
            });

            timer.Start();

            return(t);
        }
Example #2
0
 public static void RunTimeout(Timeout t)
 {
     t.Run (app);
 }
Example #3
0
        public static Timeout AddTimeout(TimeSpan begin, TimeSpan timespan, IRepeatBehavior repeat, object data, TimeoutCallback callback)
        {
            Timeout t = new Timeout (begin, timespan, repeat, data, callback);

            ITimerWatcher timer = null;
            timer = context.CreateTimerWatcher (begin, timespan, delegate {
                t.Run (app);
                if (!t.ShouldContinueToRepeat ()) {
                    t.Stop ();
                    timer.Dispose ();
                }
            });

            timer.Start ();

            return t;
        }
Example #4
0
 public static void RunTimeout(Timeout t)
 {
     t.Run(app);
 }