Gets the current state of the communication-oriented object.
Assemblies: System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
System.ServiceModel (in System.ServiceModel.dll)
The main communication states available to an ICommunicationObject are:
There are also transitory states that such an object can occupy when transitioning between the first three main states:
This CommunicationState defines the states that are valid for all communication-oriented objects in the system, including channels, listeners, the channel and listener factories, and the ServiceHost class.