Exits
public static class Exits
1. Methods
1.1. Exit(Extensions.Logging.ILogger, int, string, object[])
public static void Exit(Extensions.Logging.ILogger logger, int returnCode, string message = null, params object[] args)
| Name | Type | Description |
|---|---|---|
logger |
Extensions.Logging.ILogger |
|
returnCode |
int |
|
message |
string |
|
args |
object[] |
1.2. ExitFailure(ISystemHost, Exception, string, object[])
public static void ExitFailure(this ISystemHost host, Exception exception, string message = null, params object[] args)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
exception |
Exception |
|
message |
string |
|
args |
object[] |
1.3. ExitFailure(ISystemHost, string, object[])
public static void ExitFailure(this ISystemHost host, string message = null, params object[] args)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
message |
string |
|
args |
object[] |
1.4. ExitIfNotElevated(ISystemHost)
public static void ExitIfNotElevated(this ISystemHost host)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
1.5. ExitReboot(ISystemHost, int)
public static void ExitReboot(this ISystemHost host, int returnCode = 0)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
returnCode |
int |
1.6. ExitShutdown(ISystemHost, int)
public static void ExitShutdown(this ISystemHost host, int returnCode = 0)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
returnCode |
int |
1.7. ExitSuccess(ISystemHost, string, object[])
public static void ExitSuccess(this ISystemHost host, string message = null, params object[] args)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
message |
string |
|
args |
object[] |