Abstract
I must confess, my behavior is governed by my state. If I didn’t get enough sleep, I am going to be a bit tired. If I had a drink, I wouldn’t get behind the wheel. All of these are states and they govern my behavior: how I feel, what I can and cannot do.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
I lied, twice. First, I don’t drive a car; I prefer electric bikes. Not that it affects drinking in any way—it is still not allowed. Second, I don’t drink coffee.
- 2.
Stateless can be found at https://github.com/dotnet-state-machine/stateless . It’s worth noting that the phone call example actually comes from the authors of SimpleStateMachine, a project on which Stateless is based.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Dmitri Nesteruk
About this chapter
Cite this chapter
Nesteruk, D. (2019). State. In: Design Patterns in .NET. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4366-4_22
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4366-4_22
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4365-7
Online ISBN: 978-1-4842-4366-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)