This topic has not yet been rated - Rate this topic

DuplexChannelFactory.DuplexChannelFactory(Object, ServiceEndpoint) Constructor

Initializes a new instance of the DuplexChannelFactory class with an object that implements the callback contract and a specified endpoint.

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

public DuplexChannelFactory (
	Object callbackObject,
	ServiceEndpoint endpoint
)
public DuplexChannelFactory (
	Object callbackObject, 
	ServiceEndpoint endpoint
)
public function DuplexChannelFactory (
	callbackObject : Object, 
	endpoint : ServiceEndpoint
)
Not applicable.

Parameters

callbackObject

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

endpoint

The ServiceEndpoint to which channels produced by the factory connect.

Exception typeCondition

ArgumentNullException

callbackObject is a null reference (Nothing in Visual Basic).

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.