WSDualHttpBinding.ClientBaseAddress Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.