Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix the numbering
  • Loading branch information
catodd authored Feb 14, 2017
1 parent 859c539 commit 8b9683f
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions PauseResumeCLI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,25 @@ These command work in either Escrow or Non-Escrow mode.

##Highlights

1. Subscribe

```
validator.OnEscrow +=validator_OnEscrow;
```

2. Control your state

```
AppState = InternalState.Escrow;
```

3. Execute your action

```
1. Subscribe

```csharp
validator.OnEscrow +=validator_OnEscrow;
```
2. Control your state

```csharp
AppState = InternalState.Escrow;
```
3. Execute your action

```csharp
// If Escrowed, prompt for stack or reject
else if (AppState == InternalState.Escrow)
{
validator.Stack();
}
```
4. Emit the PauseAcceptance() or ResmeAcceptance() when the acceptor is in the Idle state. If you call PauseAcceptance()
while stacking, the note may return immediately depending on your poll rate. It is advised that either check the state
validator.PreviousState or maintain your own state if you have more complex customer requirements. The PreviousState
property is called such because it is not realtime. It is the state reported by the slave during the previous message loop.
```
4. Emit the PauseAcceptance() or ResmeAcceptance() when the acceptor is in the Idle state
- If you call PauseAcceptance() while stacking, the note may return immediately depending on your poll rate. It is advised that either check the state validator.PreviousState or maintain your own state if you have more complex customer requirements. The PreviousState property is called such because it is not realtime. It is the state reported by the slave during the previous message loop.

0 comments on commit 8b9683f

Please sign in to comment.