private void OnJoinEvent(ZyreEventJoin joinEvent) { var temp = JoinEvent; // for thread safety temp?.Invoke(this, joinEvent); }