C# Class Opc.Ua.Configuration.ApplicationInstance.WindowsService

Manages the interface between the UA server and the Windows SCM.
Inheritance: System.ServiceProcess.ServiceBase
ファイルを表示 Open project: OPCFoundation/UA-.NET

Public Methods

Method Description
WindowsService ( ServerBase server, string configSectionName, ApplicationType applicationType, Type configurationType ) : System

Initializes a new instance of the WindowsService class.

Protected Methods

Method Description
OnStart ( string args ) : void

Starts the server in a background thread.

OnStop ( ) : void

Stops the server so the service can shutdown.

Private Methods

Method Description
OnBackgroundStart ( object state ) : void

Runs the service in a background thread.

Method Details

OnStart() protected method

Starts the server in a background thread.
protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

Stops the server so the service can shutdown.
protected OnStop ( ) : void
return void

WindowsService() public method

Initializes a new instance of the WindowsService class.
public WindowsService ( ServerBase server, string configSectionName, ApplicationType applicationType, Type configurationType ) : System
server Opc.Ua.ServerBase The server.
configSectionName string Name of the config section.
applicationType ApplicationType Type of the application.
configurationType System.Type Type of the configuration.
return System