Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #region Using Directives
  2.  
  3. using System;
  4.  
  5. using Endjin.Core.Retry.Policies;
  6.  
  7. #endregion
  8.  
  9. public class DoNotRetryOnLeaseAcquisitionUnsuccessfulPolicy : IRetryPolicy
  10. {
  11. public bool CanRetry(Exception exception)
  12. {
  13. var storageException = exception as LeaseAcquisitionUnsuccessfulException;
  14.  
  15. if (storageException != null)
  16. {
  17. return false;
  18. }
  19.  
  20. return true;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement