UserInteraction

public static class UserInteraction

1. Methods

1.1. AskForConfirmationElseExit(ISystemHost)

public static void AskForConfirmationElseExit(this ISystemHost host)
Table 1. Parameters
Name Type Description

host

ISystemHost

1.2. AskForDiskClearElseExit(ISystemHost, IDisk)

public static void AskForDiskClearElseExit(this ISystemHost host, IDisk disk)
Table 2. Parameters
Name Type Description

host

ISystemHost

disk

IDisk

1.3. AskForWifiCredentials(ISystemHost)

public static (string SSID, string Password) AskForWifiCredentials(ISystemHost host)
Table 3. Parameters
Name Type Description

host

ISystemHost

Returns: (string SSID, string Password)

1.4. AskRebootNow(ISystemHost, string)

public static void AskRebootNow(this ISystemHost host, string message = "Do you want to reboot immediately?")
Table 4. Parameters
Name Type Description

host

ISystemHost

message

string

1.5. AskShutdownNow(ISystemHost, string)

public static void AskShutdownNow(this ISystemHost host, string message = "Do you want to shutdown immediately?")
Table 5. Parameters
Name Type Description

host

ISystemHost

message

string

1.6. HiddenUserInput(ISystemHost, string)

public static string HiddenUserInput(ISystemHost host, string prompt)
Table 6. Parameters
Name Type Description

host

ISystemHost

prompt

string

Returns: string

1.7. SelectDisk(ISystemHost, IReadOnlyCollection<IDisk>, int?)

public static IDisk SelectDisk(ISystemHost host, IReadOnlyCollection<IDisk> disks, int? givenIndex = null)
Table 7. Parameters
Name Type Description

host

ISystemHost

disks

IReadOnlyCollection<IDisk>

givenIndex

int?

Returns: IDisk

1.8. SelectTicketAndHostname(ISystemHost, IFileProvider, JsonSerializerOptions)

public static (string ticket, string hostname) SelectTicketAndHostname(ISystemHost host, IFileProvider netsetupFolder, JsonSerializerOptions jsonOptions)
Table 8. Parameters
Name Type Description

host

ISystemHost

netsetupFolder

IFileProvider

jsonOptions

JsonSerializerOptions

Returns: (string ticket, string hostname)

1.9. UserInput(ISystemHost, string)

public static string UserInput(ISystemHost host, string prompt)
Table 9. Parameters
Name Type Description

host

ISystemHost

prompt

string

Returns: string

1.10. UserInputInt(ISystemHost, string)

public static int UserInputInt(ISystemHost host, string prompt)
Table 10. Parameters
Name Type Description

host

ISystemHost

prompt

string

Returns: int