Why we need SessionMode Enumeration:
Use SessionMode enumeration with the service contract to allow or restrict bindings to use sessions.
- Service contract supports sessions if the binding supports them
- This is default value if SessionMode is not defined in service contract
- Service contract doesnot support bindings that initiate sessions
- Service contract requires a binding that supports session
The below MSDN link, shows all possible combination of service Instance Context mode values and SessionMode enumeration values and the end result of using each of these combinations with bindings that does and doesnot support sessions.
Reference books, you may like:Programming WCF Services: Design and Build Maintainable Service-Oriented Systems
WCF Multi-Layer Services Development with Entity Framework, 4th Edition
Learning WCF: A Hands-on Guide
© 2015, admin. All rights reserved.