public static bool RunGetCacheOperationUnderExceptionHandler(RecipientCache.GetCacheOperation operation, RecipientCache.ExceptionHandler exceptionHandler, int hashCode) { try { operation(); return(true); } catch (DataSourceTransientException e) { exceptionHandler(e, hashCode); } catch (DataSourceOperationException e2) { exceptionHandler(e2, hashCode); } catch (StorageTransientException e3) { exceptionHandler(e3, hashCode); } catch (StoragePermanentException e4) { exceptionHandler(e4, hashCode); } catch (MapiRetryableException e5) { exceptionHandler(e5, hashCode); } catch (MapiPermanentException e6) { exceptionHandler(e6, hashCode); } return(false); }
public static bool RunGetCacheOperationUnderDefaultExceptionHandler(RecipientCache.GetCacheOperation operation, int hashCode) { return(RecipientCache.RunGetCacheOperationUnderExceptionHandler(operation, new RecipientCache.ExceptionHandler(RecipientCache.HandleGetCacheException), hashCode)); }