BrokerClient Constructor (SessionBase, Binding)

Initializes a new instance of the BrokerClient class that connects to the specified session by using the specified type of binding.


Namespace: Microsoft.Hpc.Scheduler.Session
Assembly: Microsoft.Hpc.Scheduler.Session (in Microsoft.Hpc.Scheduler.Session.dll)

'Usage
Dim session As SessionBase
Dim binding As Binding

Dim instance As New BrokerClient(Of TContract)(session, binding)

public BrokerClient (
	SessionBase session,
	Binding binding
)
public BrokerClient (
	SessionBase session, 
	Binding binding
)
public function BrokerClient (
	session : SessionBase, 
	binding : Binding
)

Parameters

session

An object derived from the SessionBase class that represents the session or durable session that hosts the Windows Communication Foundation (WCF) service to which the client should connect.

binding

An object derived from the Binding class that specifies the type of WCF binding to use to connect the client to the session.

The T:Microsoft.Hpc.Scheduler.Session.BrokerClient`1 class supports two types of binding: NetTcpBinding, which is the default, and CustomBinding.

If NetTcpBinding is used, the TransportScheme must contain NetTcp.

If CustomBinding is used, TransportScheme must contain Custom.

If you choose CustomBinding and you want to use the BrokerClient class, the binding must support DuplexSessionChannel (for example, Binding.CanBuildChannelFactory<IDuplexSessionChannel>() must return true).

If you use WebAPI, binding is ignored because the REST API is used for communication.

Platform Note: This constructor was introduced in was introduced in Windows HPC Server 2008 R2 and is not supported in previous versions.


Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22
Show: