/// <summary> /// Notifies all event subscribers of process event. Use this method to send important /// log and exception related information for business logic decisions. /// </summary> /// <param name="eventType">Notification level for process.</param> /// <param name="message">Message to send as a notification.</param> public virtual void RaiseProcessEvent(ProcessEventTypes eventType, string message) { if (OnProcessChangedEvent != null) { ProcessEventArgs args = new ProcessEventArgs(eventType, message); OnProcessChangedEvent(this, args); } }
/// <summary> /// Default constructor for ProcessEventArgs /// </summary> /// <param name="eventType">Type of event to attach to event.</param> /// <param name="message">Message to attach to event.</param> public ProcessEventArgs(ProcessEventTypes eventType, string message = "") { EventType = eventType; Message = message; }