protected GuiTaskHandlerBase() { if (WindowsUtils.IsWindowsNT) { CredentialProvider = new CachedCredentialProvider(new WindowsDialogCredentialProvider(this)); } }
public CliTaskHandler() { if (WindowsUtils.IsWindowsNT) { CredentialProvider = new CachedCredentialProvider(new WindowsCliCredentialProvider(this)); } try { Console.CancelKeyPress += CancelKeyPressHandler; } #region Error handling catch (IOException) { // Ignore problems caused by unusual terminal emulators } #endregion }