C# Class Stumps.Server.StumpsHost

A class that represents a multitenant host of Stumps servers.
Inheritance: IStumpsHost
Afficher le fichier Open project: Cayan-LLC/stumps Class Usage Examples

Méthodes publiques

Méthode Description
CreateServerInstance ( string remoteServerHostName, int port, bool useSsl, bool autoStart ) : StumpsServerInstance

Creates a new instance of a Stumps server.

DeleteServerInstance ( string serverId ) : void

Deletes an existing Stumps server.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FindAll ( ) : IList

Finds all Stumps servers hosted by the current instance.

FindServer ( string serverId ) : StumpsServerInstance

Finds the Stumps server with the specified identifier.

A null value is returned if a Stumps server with the specified serverId is not found.

Load ( ) : void

Loads all Stumps servers from the data store.

Shutdown ( ) : void

Shuts down this instance and all started Stumps servers.

Shutdown ( string serverId ) : void

Shut down the specified Stumps server.

Start ( ) : void

Starts all Stumps servers that are not currently running.

Start ( string serverId ) : void

Starts the Stumps server with the specified unique identifier.

StumpsHost ( IServerFactory serverFactory, IDataAccess dataAccess ) : System

Initializes a new instance of the T:Stumps.Server.StumpsHost class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
UnwrapAndRegisterServer ( ServerEntity entity ) : void

Method Details

CreateServerInstance() public méthode

Creates a new instance of a Stumps server.
is null. exceeds the allowed TCP port range. The port is already in use.
public CreateServerInstance ( string remoteServerHostName, int port, bool useSsl, bool autoStart ) : StumpsServerInstance
remoteServerHostName string The host name for the remote server by the Stumps server.
port int The TCP port used to listen for incomming HTTP requests.
useSsl bool true if the remote server requires SSL.
autoStart bool true to automatically start the Stumps server.
Résultat StumpsServerInstance

DeleteServerInstance() public méthode

Deletes an existing Stumps server.
is null.
public DeleteServerInstance ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

FindAll() public méthode

Finds all Stumps servers hosted by the current instance.
public FindAll ( ) : IList
Résultat IList

FindServer() public méthode

Finds the Stumps server with the specified identifier.
A null value is returned if a Stumps server with the specified serverId is not found.
public FindServer ( string serverId ) : StumpsServerInstance
serverId string The unique identifier for the Stumps server.
Résultat StumpsServerInstance

Load() public méthode

Loads all Stumps servers from the data store.
public Load ( ) : void
Résultat void

Shutdown() public méthode

Shuts down this instance and all started Stumps servers.
public Shutdown ( ) : void
Résultat void

Shutdown() public méthode

Shut down the specified Stumps server.
is null.
public Shutdown ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
Résultat void

Start() public méthode

Starts all Stumps servers that are not currently running.
public Start ( ) : void
Résultat void

Start() public méthode

Starts the Stumps server with the specified unique identifier.
is null.
public Start ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
Résultat void

StumpsHost() public méthode

Initializes a new instance of the T:Stumps.Server.StumpsHost class.
/// is null. /// or /// is null. ///
public StumpsHost ( IServerFactory serverFactory, IDataAccess dataAccess ) : System
serverFactory IServerFactory The factory used to initialize new server instances.
dataAccess IDataAccess The data access provider used by the instance.
Résultat System