protected async void Button_GetExternalIp_3rd(object sender, EventArgs e) { //throw new Exception(); //try //{ updateIPAddressResult(entryExternalIP3rdParty, await ExternalTestingServicesHelper.GetExternalIPAsync()); //} //catch { //} }
protected async void Button_CheckPort(object sender, EventArgs e) { bool?result = await ExternalTestingServicesHelper.CheckPortAsync(entryCheckPort_IP.Text, entryCheckPort_Port.Text); this.ShowMessage(result.HasValue ? (result.Value ? "Open" : "Closed") : "check failed"); }