Click or drag to resize

ClientSlotSendTransaction Method (String, Object, Boolean, Boolean, Int32)

Sends a transaction request to the specified service, optinally encrypting and signing messages with a timeout.

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,
	bool encrypted,
	bool signed,
	int timeout
)

Parameters

service
Type: SystemString
The name of the transaction service.
request
Type: SystemObject
The transaction request data.
encrypted
Type: SystemBoolean
If true the messages are encrypted.
signed
Type: SystemBoolean
If true the message is signed.
timeout
Type: SystemInt32
The maximum time to wait for a reply (milliseconds).

Return Value

Type: Message
The service reply Message.
Remarks

The request data is converted to a string using the standard method ToString, hence 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, then the default HostName is used. TranName is the name of the requested transaction, and 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 specifies the amount of milliseconds to wait (more or less) for the reply message. If timeout is zero, however, the call simply waits forever for the reply message.

See Also