示例#1
0
 internal static void RunMapiCode(LocalizedString context, ActionParams action, params object[] arguments)
 {
     try
     {
         action(arguments);
     }
     catch (MapiRetryableException e)
     {
         RuleUtil.TranslateThrow(e, context);
     }
     catch (MapiPermanentException e2)
     {
         RuleUtil.TranslateThrow(e2, context);
     }
 }
示例#2
0
 internal static object RunMapiCode(LocalizedString context, ActionWithReturnValue action)
 {
     try
     {
         return(action());
     }
     catch (MapiRetryableException e)
     {
         RuleUtil.TranslateThrow(e, context);
     }
     catch (MapiPermanentException e2)
     {
         RuleUtil.TranslateThrow(e2, context);
     }
     return(null);
 }