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); } }
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); }