DuplexClientBase<TChannel> Constructor (InstanceContext, String, String)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.
Namespace: System.ServiceModel
Assembly: System.ServiceModel.Extensions (in System.ServiceModel.Extensions.dll)
Syntax
'Declaration
Protected Sub New ( _
callbackInstance As InstanceContext, _
endpointConfigurationName As String, _
remoteAddress As String _
)
protected DuplexClientBase(
InstanceContext callbackInstance,
string endpointConfigurationName,
string remoteAddress
)
Parameters
- callbackInstance
Type: System.ServiceModel.InstanceContext
An object used to create the instance context that associates the callback object with the channel to the service.
- endpointConfigurationName
Type: System.String
The name of the client endpoint information in the application configuration file.
- remoteAddress
Type: System.String
The address of the service endpoint to use.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The callback instance is null. |
ArgumentNullException | The configuration name is null. |
ArgumentNullException | The address is null. |
Remarks
The callbackInstance provided by the user is used to service all callback operations.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.