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); })); }
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); } })); }