/// <summary> /// This method is called when the Microservice receives a start request. /// </summary> internal virtual void OnStartRequested() { try { StartRequested?.Invoke(mService, new StartEventArgs()); } catch (Exception ex) { mDataCollection?.LogException("StartRequested event / external exception thrown on event", ex); } }
/// <summary> /// Calls <see cref="StartRequested"/> event. /// </summary> public void RequestStart() { this.Trace(); StartRequested?.Invoke(); }