Click or drag to resize
GetOptionCommand Class
Plays the given file, and waits for the user to press one of the given digits. If none of the esacpe digits is pressed while streaming the file this command waits for the specified timeout still waiting for the user to press a digit. Streaming always begins at the beginning.
Returns 0 if no digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected.
Remember, the file extension must not be included in the filename.
Inheritance Hierarchy

Namespace: AsterNET.FastAGI.Command
Assembly: AsterNET (in AsterNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class GetOptionCommand : AGICommand

The GetOptionCommand type exposes the following members.

Constructors
  NameDescription
Public methodGetOptionCommand(String, String)
Creates a new GetOptionCommand with a default timeout of 5 seconds.
Public methodGetOptionCommand(String, String, Int32)
Creates a new GetOptionCommand with the given timeout.
Top
Methods
  NameDescription
Public methodBuildCommand (Overrides AGICommandBuildCommand.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodEscapeAndQuote (Inherited from AGICommand.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Inherited from AGICommand.)
Top
Properties
  NameDescription
Public propertyEscapeDigits
Get/Set the digits that the user is expected to press.
Public propertyFile
Get/Set the name of the file to stream.
Public propertyTimeout
Get/Set the timeout to wait if none of the defined esacpe digits was presses while streaming.
Top
See Also