Beispiel #1
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;
         }
     }
 }