Created
June 25, 2014 10:47
-
-
Save odeheurles/fce8fdb029501f754df4 to your computer and use it in GitHub Desktop.
Defining actions
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
_stateMachine.Configure(RfqState.Requesting) | |
.OnEntry(LogTransition) | |
.OnEntryFrom(_rfqEventUserRequests, OnEntryRequesting) | |
.Permit(RfqEvent.ServerNewQuote, RfqState.Quoted) | |
.Permit(RfqEvent.UserCancels, RfqState.Cancelling) | |
.Permit(RfqEvent.InternalError, RfqState.Error); | |
private void OnEntryRequesting(IQuoteRequest quoteRequest) | |
{ | |
// here goes the code to send a quote request to the server | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment