13 [BadMethod(description:
"Creates a new NetHost Instance")]
14 [
return: BadReturn(
"The NetHost Instance")]
15 private BadTable Create([BadParameter(description:
"Array of string prefixes")] string[] prefixes)
19 table.SetFunction(
"Start", host.
Start);
20 table.SetFunction(
"Stop", host.
Stop);
21 table.SetFunction(
"Close", host.
Close);
22 table.SetFunction(
"Abort", host.
Abort);
Implements a Task Object.
static readonly BadClassPrototype Prototype
The BadTask Prototype.
Implements the "NetHost" Api.
BadTable Create([BadParameter(description:"Array of string prefixes")] string[] prefixes)
Implements a BadScript HttpListener Host.
void Close()
Close the Listener.
void Start()
Starts the Listener.
void Abort()
Aborts the Listener.
void Stop()
Stops the Listener.
static IEnumerator< BadObject > AcceptClient(HttpListener listener, Action< BadObject > callback)
Accepts a Client.
Implements an Interop API for the BS2 Language.
Implements a Table Structure for the BadScript Language.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains Network Hosting Extensions and APIs for the BadScript2 Runtime.
Contains the Extension Classes for Functions.
Contains the Runtime Objects.