Specifies whether a service supports sending responses to anonymous addresses only, to non-anonymous addresses only, or to both.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The server only supports anonymous addresses and clients must provide an anonymous response address.
The server supports both anonymous and non-anonymous addresses and clients may choose to use either or both.
The server only supports non-anonymous addresses and clients must provide a non-anonymous response address.
This enumeration is used to specify the capability of a server, which, in turn, imposes a requirement on its clients.
Windows Communication Foundation (WCF) has a variety of addressing controls for specifying where messages should be sent. For example, there is the logical To address for the message destination, the physical ("Via") address, used by the transport, at which a service listens, and the ReplyTo address of the endpoint that provides the address of the client endpoint.
In the most basic case, when two parties exchange messages between themselves only, it is not necessary to specify these addresses separately. But because exchanges can involve other message destinations, you must be able to specify when addresses must be explicitly provided. Even between just two parties this ability is sometimes required, as with dual HTTP where the server must create its own HTTP request. The following kinds of relationships are defined by theenumeration to capture these messaging patterns:
WSDualHttpBinding binding uses a address. With dual HTTP, the client creates an HTTP request to send a message and then the server must create its own HTTP request to send a response. Because the server is initiating the send, it must have a specific endpoint to establish the connection. You must provide the server the address of an endpoint for its response. Similarly, if a service must respond to a one-way message that it received, it also requires a address because there is no back channel available for communication. If the server sends a message back, a completely separate operation from that used to send the first message is required.addresses are used when sending the response requires creating a new channel for communication. The WCF system-provided
is a third form of addressing which combines and addresses depending on the message that is being sent. A typical example of mixed-mode addressing is the use of a dedicated machine for processing fault or acknowledgment messages. If the standard exchange sequence for replies is HTTP or TCP, the responses use addressing but the faults use non-anonymous addressing. While WCF does not provide addressing functionality in one of its standard bindings, it is possible to write a channel that allows the service to send responses directly on the back-channel (when the response address is ) or on a separate channel (when the response address is ). In such a case, the binding element of the channel is used to set to .
Available since 3.0