private void OnStopEvent(ZyreEventStop stopEvent) { var temp = StopEvent; // for thread safety temp?.Invoke(this, stopEvent); }