Click or drag to resize

ServerChannelSendReply Method (Object, Int32, Boolean)

Sends a transaction reply message with the supplied replyCode and required server hold state.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public void SendReply(
	Object reply,
	int replyCode,
	bool hold
)

Parameters

reply
Type: SystemObject
The reply message.
replyCode
Type: SystemInt32
The reply code.
hold
Type: SystemBoolean
If true the server will enter a hold state.
Remarks

The reply data is converted to a string using the standard

ToString
method, hence any .NET object can be used as reply data.

The replyCode indicates the completion status of the transaction, such as ACK (for success) or NAK (in case of failure).

If hold is true, the server application will enter a hold state. This hold state can later be released using the ReleaseHold method.

This method can only be used within the context of a ProcessTransaction(String, Message) method. In other words, you can only send a reply message to an active transaction request. If there is no active transaction request, then this method does nothing. If this method is used more than once within the context of the same transaction request, only the first call will send a reply. The other calls will be silently ignored. In other words, you can only send one reply message to a transaction request.

See Also