protected virtual void OnRaiseNormalEvent(NormalEventArgs data) { EventHandler <NormalEventArgs> handler = this.RaiseNormalEvent; // A null check on the handler is necessary in case nothing has been added. if (handler != null) { Console.WriteLine($"Invoking NormalEvent: {data}"); handler(this, data); } else { Console.WriteLine($"No Events to Raise: {data}"); } }
private static void AppendNormalProcess(object sender, NormalEventArgs state) { Console.WriteLine($"Processing appended to Normal Process: {state}"); }
private static void PerformNormalProcess(object sender, NormalEventArgs state) { Console.WriteLine($"Performing Normal Process: {state}"); }