Last active
August 29, 2015 14:16
-
-
Save HowardvanRooijen/169611bc7fc3b60c0c59 to your computer and use it in GitHub Desktop.
RetryUntilLeaseAcquiredPolicy extension for Endjin.Retry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Using Directives | |
using System; | |
using Endjin.Core.Retry.Policies; | |
#endregion | |
public class RetryUntilLeaseAcquiredPolicy : IRetryPolicy | |
{ | |
public bool CanRetry(Exception exception) | |
{ | |
var actualException = exception as LeaseAcquisitionUnsuccessfulException; | |
return actualException != null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment