C# Class openHistorian.ServiceHost

Inheritance: GSF.TimeSeries.ServiceHostBase
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
DisconnectClient ( System.Guid clientID ) : void
LogException ( Exception ex ) : void

Logs an exception to the service.

LogStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void

Logs a status message to connected clients.

LogWebHostStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void
SendRequest ( System.Guid clientID, string userInput ) : void

Sends a command request to the service.

ServiceHost ( ) : System

Creates a new ServiceHost instance.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the ServiceHost object and optionally releases the managed resources.

ServiceStartingHandler ( object sender, EventArgs e ) : void

Event handler for service starting operations.

ServiceStoppingHandler ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
LoggedExceptionHandler ( object sender, EventArgs e ) : void
UpdatedStatusHandler ( object sender, EventArgs e ) : void
WebServer_StatusMessage ( object sender, EventArgs e ) : void
m_logSubscriber_Log ( LogMessage logMessage ) : void

Method Details

DisconnectClient() public méthode

public DisconnectClient ( System.Guid clientID ) : void
clientID System.Guid
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the ServiceHost object and optionally releases the 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

LogException() public méthode

Logs an exception to the service.
public LogException ( Exception ex ) : void
ex System.Exception Exception to log.
Résultat void

LogStatusMessage() public méthode

Logs a status message to connected clients.
public LogStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void
message string Message to log.
type UpdateType Type of message to log.
Résultat void

LogWebHostStatusMessage() public méthode

public LogWebHostStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void
message string
type UpdateType
Résultat void

SendRequest() public méthode

Sends a command request to the service.
public SendRequest ( System.Guid clientID, string userInput ) : void
clientID System.Guid Client ID of sender.
userInput string Request string.
Résultat void

ServiceHost() public méthode

Creates a new ServiceHost instance.
public ServiceHost ( ) : System
Résultat System

ServiceStartingHandler() protected méthode

Event handler for service starting operations.
protected ServiceStartingHandler ( object sender, EventArgs e ) : void
sender object Event source.
e EventArgs Event arguments containing command line arguments passed into service at startup.
Résultat void

ServiceStoppingHandler() protected méthode

protected ServiceStoppingHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void