C# Class PlaygroundKeeper.PlaygroundHost

显示文件 Open project: Starcounter/PlaygroundKeeper Class Usage Examples

Public Properties

Property Type Description
ApiIP string
ApiPort ushort
BeginPortRange ushort
Created System.DateTime
Description string
EndPortRange ushort
EntryPoint string
HostName string
HostPort ushort
Information ServerInformation
Name string
Password string
Updated System.DateTime
Username string

Public Methods

Method Description
GenerateUniqueDatabaseName ( string name, Action completionCallback, Action errorCallback = null ) : void

GetAvailablePort ( Action completionCallback, Action errorCallback = null ) : void

Get next available port on a host for a database TODO: Make thread safe

RegisterHooks ( ) : void

Register Hooks

Method Details

GenerateUniqueDatabaseName() public method

public GenerateUniqueDatabaseName ( string name, Action completionCallback, Action errorCallback = null ) : void
name string
completionCallback Action
errorCallback Action
return void

GetAvailablePort() public method

Get next available port on a host for a database TODO: Make thread safe
public GetAvailablePort ( Action completionCallback, Action errorCallback = null ) : void
completionCallback Action
errorCallback Action
return void

RegisterHooks() public static method

Register Hooks
public static RegisterHooks ( ) : void
return void

Property Details

ApiIP public_oe property

Playground Admin API IP, "127.0.0.1"
public string ApiIP
return string

ApiPort public_oe property

Playground Admin API Port, 8181
public ushort ApiPort
return ushort

BeginPortRange public_oe property

Database begin port range, 7000
public ushort BeginPortRange
return ushort

Created public_oe property

public DateTime,System Created
return System.DateTime

Description public_oe property

public string Description
return string

EndPortRange public_oe property

Database end port range, 7999
public ushort EndPortRange
return ushort

EntryPoint public_oe property

root entry point
public string EntryPoint
return string

HostName public_oe property

Playground hostname, "myplayground.com"
public string HostName
return string

HostPort public_oe property

Playground Port, 80
public ushort HostPort
return ushort

Information public_oe property

public ServerInformation,PlaygroundKeeper Information
return ServerInformation

Name public_oe property

public string Name
return string

Password public_oe property

RemotePlayground credentials
public string Password
return string

Updated public_oe property

public DateTime,System Updated
return System.DateTime

Username public_oe property

RemotePlayground credentials
public string Username
return string