Auto-Open (part 1)
Posted by: mjm,
on 13 Nov 2006 |
View original | Bookmarked: 0 time(s)
Several objects in WCF support ICommunicationObject. ICommunicationObjects have a well-defined life-cycle:
Created -> Opening -> Opened -> Closing -> Closed
There is also a Faulted state and a few more transitions than these, but they are not relevant to auto-open.
Most ICommunicationObjects can only be used in the Opened state. For example, most channels will throw if you try to Send a Message when the channel is not Opened.
However, for usability, a few objects...