Export (0) Print
Expand All

DuplexChannelFactory.DuplexChannelFactory(InstanceContext, Binding) Constructor

Initializes a new instance of the DuplexChannelFactory class with a context that implements the callback contract and a specified binding.

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

public DuplexChannelFactory (
	InstanceContext callbackInstance,
	Binding binding
)
public DuplexChannelFactory (
	InstanceContext callbackInstance, 
	Binding binding
)
public function DuplexChannelFactory (
	callbackInstance : InstanceContext, 
	binding : Binding
)
Not applicable.

Parameters

callbackInstance

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

binding

The Binding used to connect to the service by channels produced by the factory.

Exception typeCondition

ArgumentNullException

callbackInstance or binding is a null reference (Nothing in Visual Basic).

Use this constructor to pass an instance context object that implements the callback contract for the target service and to pass the binding information programmatically rather than by 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

Community Additions

ADD
Show:
© 2014 Microsoft