Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EventStore/EventStore#38 introduced a hardwired backoff as a way to achieve feature parity with an existing implementation, as a way of punting on where such a backoff should live.
Given the fact that the implementation work in EventStore/EventStore#42 has made it clear that a cleaner solution will be possible with
Equinox.Cosmos
, this PR makes the backoffs pluggable so that one can plug in a hardwired workaround for EventStore/EventStore-Client-Dotnet#312 in the absence of a more appropriate soltuion in any application context.And, yes, I'd love for someone to clean up the policy such that the way one specifies the exception, max retries and backoffs is much cleaner and discoverable than this :(