ClientBase<TChannel> Constructor (InstanceContext^)
Initializes a new instance of the ClientBase<TChannel> class using the callbackInstance as the callback object in a duplex conversation.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- callbackInstance
-
Type:
System.ServiceModel::InstanceContext^
The callback object that the client application uses to listen for messages from the connected service.
| Exception | Condition |
|---|---|
| ArgumentNullException | The callback instance is null. |
| InvalidOperationException | Either there is no default endpoint information in the configuration file, more than one endpoint in the file, or no configuration file. |
Use this constructor when the service contract requires a callback service instance. The target endpoint is constructed from the type parameter and information in the application configuration file.
Available since 3.0