UserInteraction
public static class UserInteraction
1. Methods
1.1. AskForConfirmationElseExit(ISystemHost)
public static void AskForConfirmationElseExit(this ISystemHost host)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
1.2. AskForDiskClearElseExit(ISystemHost, IDisk)
public static void AskForDiskClearElseExit(this ISystemHost host, IDisk disk)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
disk |
IDisk |
1.3. AskForWifiCredentials(ISystemHost)
public static (string SSID, string Password) AskForWifiCredentials(ISystemHost host)
| 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?")
| 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?")
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
message |
string |
1.6. HiddenUserInput(ISystemHost, string)
public static string HiddenUserInput(ISystemHost host, string prompt)
| 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)
| 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)
| 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)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
prompt |
string |
Returns: string
1.10. UserInputInt(ISystemHost, string)
public static int UserInputInt(ISystemHost host, string prompt)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
prompt |
string |
Returns: int