WSDualHttpBinding.ClientBaseAddress Property

Definition

Gets or sets the base address of the client.

public:
 property Uri ^ ClientBaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ClientBaseAddress { get; set; }
member this.ClientBaseAddress : Uri with get, set
Public Property ClientBaseAddress As Uri

Property Value

Uri

The Uri that is the base address of the client. The default value is null.

Examples

The following example shows how to specify the wsDualHttpBinding binding in a configuration file.

WSDualHttpBinding dualBinding = new WSDualHttpBinding();
EndpointAddress endptadr = new EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server");
dualBinding.ClientBaseAddress = new Uri("http://localhost:8000/DuplexTestUsingCode/Client/");
Dim dualBinding As New WSDualHttpBinding()
Dim endptadr As New EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server")
dualBinding.ClientBaseAddress = New Uri("http://localhost:8000/DuplexTestUsingCode/Client/")

Remarks

This public URI for the client provides the callback endpoint required for the service to contact the client when the contract is duplex.

Applies to