protoactor-dotnet
protoactor-dotnet copied to clipboard
Persistence.cs use callback with index
At times certain persistence options don't allow you to delete an event and a common way to deal with this is to read the stream in memory, delete the stream, remove the desired event, and persist the stream. Some storages such as SQL or EventStoreDB will continue the index count from where it left resulting quite often in version conflicts. Rewriting this to use an Index in the callback can fix this bug/issue/inconvenience
Description
Purpose
This pull request is a:
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)