Ejemplo n.º 1
0
 /// <summary>
 /// EventHandler #2.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void AnotherHandler(object sender, MyCustomEventArgs e)
 {
     Console.WriteLine($"Handler2 invoked... {e.Message}");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Client work to perform when all the work has been completed.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void NotifyWorkCompleted(object sender, MyCustomEventArgs e)
 {
     Console.WriteLine(e.Message);
 }