Example #1
0
 /// <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);
     }
 }
Example #2
0
 /// <summary>
 /// Calls <see cref="StartRequested"/> event.
 /// </summary>
 public void RequestStart()
 {
     this.Trace();
     StartRequested?.Invoke();
 }