private ServiceResult OnAddComment( ISystemContext context, ConditionState condition, byte[] eventId, LocalizedText comment) { ConditionState alarm = GetAlarm(); ConditionState alarmOrBranch = alarm.GetEventByEventId(eventId); if (alarmOrBranch == null) { string errorMessage = "Unknown event id " + Utils.ToHexString(eventId); alarm.Message.Value = "OnAddComment " + errorMessage; LogError("OnAddComment", errorMessage); return(StatusCodes.BadEventIdUnknown); } m_alarmController.OnAddComment(); // Don't call ReportEvent, Core will send the event. m_delayedMessages.Add("OnAddComment"); return(ServiceResult.Good); }