private void ExceptionWithThreadSleepSecMinute() { System.Diagnostics.Trace.WriteLine("Start sleep." + DateTime.Now.Millisecond); Thread.Sleep(2000); System.Diagnostics.Trace.WriteLine("End sleep." + DateTime.Now.Millisecond); var thrower = new ExceptionThrower(); thrower.RaiseException(FUseCodeException); }
public void ExceptionInMainThread() { var thrower = new ExceptionThrower(); thrower.RaiseException(FUseCodeException); }