C# Класс Stumps.Server.StumpsHost

A class that represents a multitenant host of Stumps servers.
Наследование: IStumpsHost
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Приватные методы

Метод Описание
UnwrapAndRegisterServer ( ServerEntity entity ) : void

Описание методов

CreateServerInstance() публичный Метод

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.
Результат StumpsServerInstance

DeleteServerInstance() публичный Метод

Deletes an existing Stumps server.
is null.
public DeleteServerInstance ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

FindAll() публичный Метод

Finds all Stumps servers hosted by the current instance.
public FindAll ( ) : IList
Результат IList

FindServer() публичный Метод

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.
Результат StumpsServerInstance

Load() публичный Метод

Loads all Stumps servers from the data store.
public Load ( ) : void
Результат void

Shutdown() публичный Метод

Shuts down this instance and all started Stumps servers.
public Shutdown ( ) : void
Результат void

Shutdown() публичный Метод

Shut down the specified Stumps server.
is null.
public Shutdown ( string serverId ) : void
serverId string The unique identifier for the Stumps server.
Результат void

Start() публичный Метод

Starts all Stumps servers that are not currently running.
public Start ( ) : void
Результат void

Start() публичный Метод

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.
Результат void

StumpsHost() публичный Метод

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.
Результат System