Creates a new ExtensionRequest instance.

Namespace: Sfs2X.Requests
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public ExtensionRequest(
	string extCmd,
	ISFSObject parameters,
	Room room,
	bool useUDP
)

Parameters

extCmd
Type: System..::..String
The name of the command which identifies an action that should be executed by the server-side Extension.
parameters
Type: Sfs2X.Entities.Data..::..ISFSObject
An instance of SFSObject containing custom data to be sent to the Extension (default = null). Can be null if no data needs to be sent.
room
Type: Sfs2X.Entities..::..Room
If null, the specified command is sent to the current Zone server-side Extension; if not null, the command is sent to the server-side Extension attached to the passed Room (default = null).
useUDP
Type: System..::..Boolean
If true, the UDP protocol is used to send the request to the server (default = false).

Remarks

The instance must be passed to the SmartFox.Send method for the request to be performed.

See Also