示例#1
0
 /// <summary>
 /// This method is called when an incoming request cannot be matched to a command within the Microservice.
 /// </summary>
 /// <param name="args">The error arguments.</param>
 internal virtual void OnProcessRequestUnresolved(DispatcherRequestUnresolvedEventArgs args)
 {
     try
     {
         ProcessRequestUnresolved?.Invoke(this, args);
     }
     catch (Exception ex)
     {
         mDataCollection?.LogException("ProcessRequestUnresolved event / external exception thrown on event", ex);
     }
 }
示例#2
0
 /// <summary>
 /// This method is called when an incoming request cannot be matched to a command within the Microservice.
 /// </summary>
 /// <param name="payload">The request payload.</param>
 /// <param name="reason">The reason the request was unsesolved</param>
 internal virtual void OnProcessRequestUnresolved(TransmissionPayload payload, DispatcherRequestUnresolvedReason reason)
 {
     try
     {
         ProcessRequestUnresolved?.Invoke(this, new DispatcherRequestUnresolvedEventArgs()
         {
             Payload = payload, Reason = reason
         });
     }
     catch (Exception ex)
     {
         mDataCollection?.LogException("OnUnhandledRequest / external exception thrown on event", ex);
     }
 }