Click or drag to resize

ServerChannelSendTransaction Method (String, Object, Int32)

Sends an synchronous transaction to the specified service with supplied request data and timeout option.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public Message SendTransaction(
	string service,
	Object request,
	int timeout
)

Parameters

service
Type: SystemString
The name of the transaction service.
request
Type: SystemObject
The data of the transaction request.
timeout
Type: SystemInt32
The number of milliseconds to wait for reply.

Return Value

Type: Message
The reply message.
Remarks

The request data is converted to a string using the standard method ToString, therefore any object can be used as request data.

The service argument has one of the following formats:

{HostName.}ServerName.TranName
{HostName.}ServerName.[TranCode]

where optional items are shown within "{" and "}" brackets, and the characters ".", "[" and "]" stand for themselves.

If the optional HostName is not specified, the default HostName is used. TranName is the name of the requested transaction, while TranCode is and alternative one-character identification of the same transaction. Either TranName or TranCode must be specified. Some examples:

ECUSER.[!]
ACASER.ACA-TIME
HUB.IMSER.AddContact

The timeout argument specifies the number of milliseconds to wait (more or less) for the reply message. If timeout is "0" (zero), however, the call simply waits forever for the reply message.

See Also