C# 클래스 Stumps.Server.StumpsHost

A class that represents a multitenant host of Stumps servers.
상속: IStumpsHost
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
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