protected virtual void OnRaiseCustomEvent(HelloWorldEvent e)
        {
            EventHandler <HelloWorldEvent> handler = RaiseCustomEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
 void HandleCustomEvent(object sender, HelloWorldEvent e)
 {
     Console.WriteLine(id + " received message: {0}", e.Message);
 }