예제 #1
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);
     }));
 }
예제 #2
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);
         }
     }));
 }