private void Pub_RaiseCustomEvent(object sender, CustomEventArgs e) { Console.WriteLine(Id + " received this message:{0}", e.Message); }
protected virtual void OnRaiseCustomEvent(CustomEventArgs e) { e.Message += $"at {DateTime.Now}"; RaiseCustomEvent?.Invoke(this, e); }