Connection SendReceiveObject sendObjectType, returnObjectType  Method (String, String, Int32, sendObjectType, SendReceiveOptions, SendReceiveOptions, Int64 )NetworkComms.Net Help
Send an object using the provided SendReceiveOptions and wait for a returned object using provided SendReceiveOptions.

Namespace: NetworkCommsDotNet.Connections
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public returnObjectType SendReceiveObject<sendObjectType, returnObjectType>(
	string sendingPacketTypeStr,
	string expectedReturnPacketTypeStr,
	int returnPacketTimeOutMilliSeconds,
	sendObjectType sendObject,
	SendReceiveOptions sendOptions,
	SendReceiveOptions receiveOptions,
	out long sentPacketSequenceNumber
)

Parameters

sendingPacketTypeStr
Type: OnlineSystem String
The sending packet type
expectedReturnPacketTypeStr
Type: OnlineSystem String
The packet type which will be used for the reply
returnPacketTimeOutMilliSeconds
Type: OnlineSystem Int32
A timeout in milliseconds after which if not reply is received will throw an ExpectedReturnTimeoutException.
sendObject
Type: sendObjectType
The object to send
sendOptions
Type: NetworkCommsDotNet SendReceiveOptions
SendReceiveOptions to use when sending
receiveOptions
Type: NetworkCommsDotNet SendReceiveOptions
SendReceiveOptions used when receiving the return object
sentPacketSequenceNumber
Type: OnlineSystem Int64 
The sequence number of the packet sent
Type Parameters

sendObjectType
The sending object type, i.e. string, int[], etc
returnObjectType
The type of return object

Return Value

Type: returnObjectType
The requested return object
See Also