Méthode | Description | |
---|---|---|
Initialize ( string name, |
Initializes the provider with the specified values.
|
|
OnWaitingPeriodElapsed ( ) : void |
The code to be executed everytime the waiting period elapses. This will complete before the waiting period until the next iteration begins. |
Méthode | Description | |
---|---|---|
AssertConfigurationValid ( ) : void |
Ensures the configuration is valid, otherwise it throws an ArgumentException.
|
|
FormatServerName ( string name ) : string |
Formats a server name for use by management API to restart the server.
|
|
GetExpectedAgeMinutes ( ) : |
Gets the expected file age in minutes, or the max file age if the expected age is not specified.
|
|
IsMonitorEnabled ( ) : bool |
Possible expansion point to disable the service monitor at preconfigured times.
|
|
RestartServer ( ) : bool |
Force Restarts the service, if possible.
|
|
RestartService ( ) : bool |
Restarts the windows service, if possible.
|
|
ValidateServiceFile ( ) : bool |
Validates that a service file exists, and if not it is logged. A custom logger should be provided to notify the appropriate party.
|
|
ValidateWindowsService ( ) : bool |
Validates if a windows service is running.
|
protected AssertConfigurationValid ( ) : void | ||
Résultat | void |
protected FormatServerName ( string name ) : string | ||
name | string | |
Résultat | string |
protected GetExpectedAgeMinutes ( ) : |
||
Résultat |
public Initialize ( string name, |
||
name | string | The name of the provider. |
configValue | Provider specific attributes. | |
Résultat | void |
protected ValidateWindowsService ( ) : bool | ||
Résultat | bool |