-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where Persist failures were being reported as rejects. (#29)
* Fix issue where Persist failures were being reported as rejects. Use an enum instead of a class on flowcontrol. * fix syntax that makes build server angry
- Loading branch information
Showing
5 changed files
with
166 additions
and
157 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
32 changes: 5 additions & 27 deletions
32
src/Akka.Persistence.Sql.Linq2Db/Journal/DAO/FlowControl.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,10 @@ | ||
namespace Akka.Persistence.Sql.Linq2Db.Journal.DAO | ||
{ | ||
public class FlowControl | ||
public enum FlowControlEnum | ||
{ | ||
public class Continue : FlowControl | ||
{ | ||
private Continue() | ||
{ | ||
} | ||
|
||
public static Continue Instance = new Continue(); | ||
} | ||
|
||
public class ContinueDelayed : FlowControl | ||
{ | ||
private ContinueDelayed() | ||
{ | ||
} | ||
|
||
public static ContinueDelayed Instance = new ContinueDelayed(); | ||
} | ||
|
||
public class Stop : FlowControl | ||
{ | ||
private Stop() | ||
{ | ||
} | ||
|
||
public static Stop Instance = new Stop(); | ||
} | ||
Unknown, | ||
Continue, | ||
Stop, | ||
ContinueDelayed | ||
} | ||
} |
Oops, something went wrong.