Ejemplo n.º 1
0
 public void Intercept(IInvocation invocation)
 {
     try
     {
         invocation.Proceed();
     }
     catch (Exception ex)
     {
         _logger.LogException(ex);
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void Intercept(IInvocation invocation)
 {
     try
     {
         invocation.Proceed();
     }
     catch (Exception ex)
     {
         _logger.LogException(ex);
         if (ex is UniqueException)
         {
             invocation.ReturnValue = MsgModel <dynamic> .Failure(ex.Message);
         }
         else
         {
             throw;
         }
     }
 }