Click or drag to resize

ServerChannelSendRequest Method (String, Object, Int32)

Sends a request message to a destination and then blocks waiting for the reply until timeout.

Namespace:  OBCOM.NetSwitchLib.Servers
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public Message SendRequest(
	string destination,
	Object data,
	int timeout
)

Parameters

destination
Type: SystemString
The request destination switch:server.service.
data
Type: SystemObject
The data to include in the request message (can be null).
timeout
Type: SystemInt32
The maximum time to wait for a reply (in milliseconds).

Return Value

Type: Message
The reply message returned from the NetSwitch server.
Exceptions
ExceptionCondition
ArgumentNullExceptiondestination is null or empty.
ArgumentOutOfRangeExceptiontimeout is negative.
TimeoutException If timeout expired while waiting for reply message.
Exception A communication error occurs while sending the request.
See Also