Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Using Directives
- using System;
- using Endjin.Core.Retry.Policies;
- #endregion
- public class DoNotRetryOnLeaseAcquisitionUnsuccessfulPolicy : IRetryPolicy
- {
- public bool CanRetry(Exception exception)
- {
- var storageException = exception as LeaseAcquisitionUnsuccessfulException;
- if (storageException != null)
- {
- return false;
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement