API Reference
Class
ServiceInstaller
Provides install, uninstall, and run-once helpers for the TestimoX service.
Inheritance
- Object
- ServiceInstaller
Methods
public static ServiceInstallResult Install(ServiceInstallRequest request) #Returns:
ServiceInstallResultInstalls the service by invoking the TestimoX.Service executable.
Parameters
- request TestimoX.Services.ServiceInstallRequest
- Install request details.
Returns
Installation result.
public static ServiceActionResult RunOnce(String serviceName, String executablePath, String configPath) #Returns:
ServiceActionResultRuns the service workload once using the specified config file.
Parameters
- serviceName System.String
- Windows service name.
- executablePath System.String
- Path to TestimoX.Service.exe.
- configPath System.String
- Config file path.
Returns
Run-once action result.
public static ServiceUninstallResult Uninstall(String serviceName, String executablePath) #Returns:
ServiceUninstallResultUninstalls the service by invoking the TestimoX.Service executable.
Parameters
- serviceName System.String
- Windows service name.
- executablePath System.String
- Path to TestimoX.Service.exe.
Returns
Uninstall result.