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)
Table 1. Parameters
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)
Table 2. Parameters
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)
Table 3. Parameters
Name Type Description

host

ISystemHost

message

string

args

object[]

1.4. ExitIfNotElevated(ISystemHost)

public static void ExitIfNotElevated(this ISystemHost host)
Table 4. Parameters
Name Type Description

host

ISystemHost

1.5. ExitReboot(ISystemHost, int)

public static void ExitReboot(this ISystemHost host, int returnCode = 0)
Table 5. Parameters
Name Type Description

host

ISystemHost

returnCode

int

1.6. ExitShutdown(ISystemHost, int)

public static void ExitShutdown(this ISystemHost host, int returnCode = 0)
Table 6. Parameters
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)
Table 7. Parameters
Name Type Description

host

ISystemHost

message

string

args

object[]