개정판 cdfb57ff
zoom control 이벤트 추가
mainmenu 수정
app 수정
Change-Id: I0d007c3a3c412b7fbe6e2a52bafb932e1a7b9f03
CommonLib/DNSHelper.cs | ||
---|---|---|
29 | 29 |
} |
30 | 30 |
return null; |
31 | 31 |
} |
32 |
|
|
33 |
public static async Task<IPHostEntry> GetHostEntryAsync() |
|
34 |
{ |
|
35 |
IPHostEntry result = null; |
|
36 |
|
|
37 |
try |
|
38 |
{ |
|
39 |
var ipaddress = CommonLib.DNSHelper.GetDnsAdress(); |
|
40 |
|
|
41 |
await Task.Factory.StartNew(() => |
|
42 |
{ |
|
43 |
result = Dns.GetHostEntry(ipaddress); |
|
44 |
}); |
|
45 |
} |
|
46 |
catch (Exception ex) |
|
47 |
{ |
|
48 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
49 |
} |
|
50 |
|
|
51 |
return result; |
|
52 |
} |
|
53 |
|
|
54 |
public static IPHostEntry GetHostEntryTask() |
|
55 |
{ |
|
56 |
IPHostEntry result = null; |
|
57 |
|
|
58 |
try |
|
59 |
{ |
|
60 |
var ipaddress = CommonLib.DNSHelper.GetDnsAdress(); |
|
61 |
|
|
62 |
var task = Task.Factory.StartNew(() => |
|
63 |
{ |
|
64 |
result = Dns.GetHostEntry(ipaddress); |
|
65 |
}); |
|
66 |
|
|
67 |
task.Wait(); |
|
68 |
} |
|
69 |
catch (Exception ex) |
|
70 |
{ |
|
71 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
72 |
} |
|
73 |
|
|
74 |
return result; |
|
75 |
} |
|
32 | 76 |
} |
33 | 77 |
} |
내보내기 Unified diff