DuplexChannelFactory(TChannel) Constructor (Object)
Collapse the table of content
Expand the table of content

DuplexChannelFactory<TChannel> Constructor (Object)

 

Initializes a new instance of the DuplexChannelFactory<TChannel> class with an object that implements the callback contract.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public DuplexChannelFactory(
	object callbackObject
)

Parameters

callbackObject
Type: System.Object

The Object that the client uses to listen for messages from the connected service.

Exception Condition
ArgumentNullException

callbackObject is null.

Use this constructor to pass an object that implements the callback contract for the target service programmatically rather than by using an application configuration file.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft