Skip to content

Instantly share code, notes, and snippets.

@HowardvanRooijen
Last active August 29, 2015 14:16
Show Gist options
  • Save HowardvanRooijen/169611bc7fc3b60c0c59 to your computer and use it in GitHub Desktop.
Save HowardvanRooijen/169611bc7fc3b60c0c59 to your computer and use it in GitHub Desktop.
RetryUntilLeaseAcquiredPolicy extension for Endjin.Retry
#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