Skip to content

Commit

Permalink
None ID generator updated
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRyazantsev committed Apr 12, 2020
1 parent 23a8119 commit 96aaeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ public class TransfersService

There are predefined aggregate ID generators:

- `OutboxAggregateIdGenerator.None` - no ID will be generated, thus aggregate ID of 0 will be used
- `OutboxAggregateIdGenerator.None` - no ID will be generated, thus aggregate ID of -1 will be used
- `OutboxAggregateIdGenerator.Sequential` - shared (within DB context) sequential ID will generated using DB sequence.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Swisschain.Extensions.Idempotency
{
public static class OutboxAggregateIdGenerator
{
public static readonly Func<Task<long>> None = () => Task.FromResult(0L);
public static readonly Func<Task<long>> None = () => Task.FromResult(-1L);
public static readonly Func<Task<long>> Sequential = () => Task.FromResult(0L);
}
}

0 comments on commit 96aaeb4

Please sign in to comment.