C# Class openHistorian.ServiceHost

Inheritance: GSF.TimeSeries.ServiceHostBase
ファイルを表示 Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

public DisconnectClient ( System.Guid clientID ) : void
clientID System.Guid
return void

Dispose() protected method

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.
return void

LogException() public method

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

LogStatusMessage() public method

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.
return void

LogWebHostStatusMessage() public method

public LogWebHostStatusMessage ( string message, UpdateType type = UpdateType.Information ) : void
message string
type UpdateType
return void

SendRequest() public method

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.
return void

ServiceHost() public method

Creates a new ServiceHost instance.
public ServiceHost ( ) : System
return System

ServiceStartingHandler() protected method

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.
return void

ServiceStoppingHandler() protected method

protected ServiceStoppingHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void