BrokerClient Constructor (String, SessionBase, String)

Initializes a new instance of the BrokerClient class that connects to the specified session by using a specified type of binding from the configuration file for the application, and assigns the specified client identifier to that instance.


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

'Usage
Dim clientid As String
Dim session As SessionBase
Dim bindingConfigName As String

Dim instance As New BrokerClient(Of TContract)(clientid, session, bindingConfigName)

public BrokerClient (
	string clientid,
	SessionBase session,
	string bindingConfigName
)
public BrokerClient (
	String clientid, 
	SessionBase session, 
	String bindingConfigName
)
public function BrokerClient (
	clientid : String, 
	session : SessionBase, 
	bindingConfigName : String
)

Parameters

clientid

Unicode string that specifies an identifier to use for the client. The maximum length of the string is 128 Unicode characters. The client identifier can only contain lowercase and uppercase letters, digits, underscores (_), opening or closing braces ({ or }), and spaces.

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.

bindingConfigName

String that specifies the name of the binding setting that you want to use to connect the client to the session, as defined in the configuration file for the application.

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: