BrokerClient.GetResponses Method ()

Retrieves an enumerator of objects that represent the response messages that the service-oriented architecture (SOA) service returned, subject to the default timeout period.


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

'Usage
Dim instance As BrokerClient(Of TContract)
Dim returnValue As BrokerResponseEnumerator(Of Object)

returnValue = instance.GetResponses

public BrokerResponseEnumerator<Object> GetResponses ()
public BrokerResponseEnumerator<Object> GetResponses ()
public function GetResponses () : BrokerResponseEnumerator<Object>

Return Value

A BrokerResponseEnumerator object that is an enumerator of Object objects that represent the responses from the SOA service.

Exception typeCondition
T;System.TimeoutException

The enumerator reached the end of the default timeout period before all of the responses were received.

The default length of time that the enumeration waits for responses is the value specified by the serviceOperationTimeout setting in the configuration file used to register the service. If the sessions for your HPC cluster are queued for long periods of time, use the GetResponses(Int32) method to specify the timeout value instead. You may want to increase the value to the sum of the current value of the serviceOperationTimeout setting and the estimated amount of time that sessions are queued.

When you use the GetResponses method, check the type of the object that you get with the Result property of the object to identify the type of the response, and cast the object to that type to access its members.

To specify the type of the object that represents the response messages, use the GetResponses method.

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


No members of this type are thread safe.

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: