Click or drag to resize

ServerChannelSendRequest Method (String, Object, ReplyListener, Object)

Sends an asynchronous transaction to the specified service with supplied request data, listener and context.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public int SendRequest(
	string service,
	Object request,
	ReplyListener listener,
	Object context
)

Parameters

service
Type: SystemString
The name of the transaction service.
request
Type: SystemObject
The data of the transaction request.
listener
Type: OBCOM.NetClientReplyListener
Called when the asynchronous reply is recieved.
context
Type: SystemObject
A used-defined object context (can be null).

Return Value

Type: Int32
The unique sequence number of the request.
Remarks

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

The reply message of this transaction request will be dispatched by calling the supplied listener delegate.

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
See Also