TestimoX

API Reference

Class

ServicePathResolver

Namespace TestimoX.Services
Assembly TestimoX
Modifiers static

Resolves Windows service image/config paths.

Inheritance

  • Object
  • ServicePathResolver

Methods

public static ServicePaths GetRequiredPaths(String serviceName) #
Returns: ServicePaths

Resolves service paths for the specified service or throws when the service cannot be found.

Parameters

serviceName System.String requiredposition: 0
Windows service name.

Returns

Resolved service paths.

public static String ResolveConfigPath(String serviceName) #
Returns: String

Resolves the service configuration path for the specified service.

Parameters

serviceName System.String requiredposition: 0
Windows service name.

Returns

Resolved configuration path.

public static String ResolveExecutablePath(String serviceName) #
Returns: String

Resolves the service executable path for the specified service.

Parameters

serviceName System.String requiredposition: 0
Windows service name.

Returns

Resolved executable path.

public static ServicePaths ResolveFromImagePath(String serviceName, String imagePath) #
Returns: ServicePaths

Resolves paths from a service ImagePath value.

Parameters

serviceName System.String requiredposition: 0
Windows service name.
imagePath System.String requiredposition: 1
ImagePath registry value.

Returns

Resolved service paths.

public static String ResolveLicensePath(String serviceName) #
Returns: String

Resolves the default service license path for the specified service.

Parameters

serviceName System.String requiredposition: 0
Windows service name.

Returns

Resolved license path.

public static ServicePaths TryResolve(String serviceName) #
Returns: ServicePaths

Attempts to resolve service paths for the specified service name.

Parameters

serviceName System.String requiredposition: 0
Windows service name.

Returns

Resolved paths or null when the service cannot be located.