API Reference
Class
ServicePathResolver
Resolves Windows service image/config paths.
Inheritance
- Object
- ServicePathResolver
Methods
public static ServicePaths GetRequiredPaths(String serviceName) #Returns:
ServicePathsResolves service paths for the specified service or throws when the service cannot be found.
Parameters
- serviceName System.String
- Windows service name.
Returns
Resolved service paths.
public static String ResolveConfigPath(String serviceName) #Returns:
StringResolves the service configuration path for the specified service.
Parameters
- serviceName System.String
- Windows service name.
Returns
Resolved configuration path.
public static String ResolveExecutablePath(String serviceName) #Returns:
StringResolves the service executable path for the specified service.
Parameters
- serviceName System.String
- Windows service name.
Returns
Resolved executable path.
public static ServicePaths ResolveFromImagePath(String serviceName, String imagePath) #Returns:
ServicePathsResolves paths from a service ImagePath value.
Parameters
- serviceName System.String
- Windows service name.
- imagePath System.String
- ImagePath registry value.
Returns
Resolved service paths.
public static String ResolveLicensePath(String serviceName) #Returns:
StringResolves the default service license path for the specified service.
Parameters
- serviceName System.String
- Windows service name.
Returns
Resolved license path.
public static ServicePaths TryResolve(String serviceName) #Returns:
ServicePathsAttempts to resolve service paths for the specified service name.
Parameters
- serviceName System.String
- Windows service name.
Returns
Resolved paths or null when the service cannot be located.