예제 #1
0
 /// <summary>
 /// Raises the <see cref="E:ExceptionOccured" /> event.
 /// </summary>
 /// <param name="eventArgs">The <see cref="ExceptionOccurredEventArgs"/> instance containing the event data.</param>
 private void OnExceptionOccured(ExceptionOccurredEventArgs eventArgs)
 {
     if (ExceptionOccurred != null)
         ExceptionOccurred(this, eventArgs);
 }
예제 #2
0
 static void wsServer_ExceptionOccurred(object sender, ExceptionOccurredEventArgs args)
 {
     Console.WriteLine("An exception occurred: " + args.Message + "\n Exception Message: " + args.Exception.Message);
 }