Ejemplo n.º 1
0
        public virtual void Exception(TodoManager mgr, Exception e)
        {
            if (exc == null)
            {
                throw new Exception("Exception method not defined");
            }

            exc(mgr, e);
        }
Ejemplo n.º 2
0
        public virtual void Doit(TodoManager mgr)
        {
            if (doIt == null)
            {
                throw new Exception("Doit method not defined");
            }

            doIt(mgr);
        }
Ejemplo n.º 3
0
 private void FireDown()
 {
     status.Set(SessionConsts.DOWN);
     TodoManager.AddTodo(new TodoDelegateImpl(
                             delegate(TodoManager mgr)
     {
         session.SessionNotify(SessionConsts.DOWN);
     },
                             delegate(TodoManager mgr, Exception e1)
     {
         Console.WriteLine(e1);
     }));
 }
Ejemplo n.º 4
0
 public void Exception(String what, Exception e)
 {
     TodoManager.AddTodo(new TodoDelegateImpl(
                             delegate(TodoManager mgr)
     {
         session.SessionNotify(e);
     },
                             delegate(TodoManager mgr, Exception e1)
     {
         Console.WriteLine(e);
         if (e1 != e)
         {
             Console.WriteLine(e1);
         }
     }));
 }