Beispiel #1
0
        // Not needed anymore, we use the custom logging Actor for tracking exceptions

        /*
         * protected override bool AroundReceive(Receive receive, object message)
         * {
         *  try
         *  {
         *      return base.AroundReceive(receive, message);
         *  }
         *  catch (Exception ex)
         *  {
         *      ActorMonitoring.TrackException(_friendlyName, ex, message);
         *      throw;
         *  }
         * }
         */

        protected override bool AroundReceive(Receive receive, object message)
        {
            ActorMonitoring.TrackReceivedMessage(_friendlyName, message, true);

            return(base.AroundReceive(receive, message));
        }
Beispiel #2
0
 protected void TrackReceivedMessage(object message, bool expires)
 {
     ActorMonitoring.TrackReceivedMessage(_friendlyName, message, expires);
 }
Beispiel #3
0
 protected void TrackReceivedMessage(object message)
 {
     ActorMonitoring.TrackReceivedMessage(_friendlyName, message);
 }