Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EndResolve()

static IPHostEntry System.Net.Dns.EndResolve ( IAsyncResult asyncResult)
inlinestatic

Definition at line 327 of file Dns.cs.

328 {
329 IPHostEntry iPHostEntry;
330 try
331 {
333 }
334 catch (SocketException message)
335 {
336 object obj = ((asyncResult is Task task) ? task.AsyncState : ((!(asyncResult is System.Threading.Tasks.TaskToApm.TaskAsyncResult taskAsyncResult)) ? null : taskAsyncResult._task.AsyncState));
337 object obj2 = obj;
338 IPAddress iPAddress2 = ((obj2 is IPAddress iPAddress) ? iPAddress : ((!(obj2 is KeyValuePair<IPAddress, AddressFamily> keyValuePair)) ? null : keyValuePair.Key));
339 IPAddress iPAddress3 = iPAddress2;
340 if (iPAddress3 == null)
341 {
342 throw;
343 }
344 if (System.Net.NetEventSource.Log.IsEnabled())
345 {
346 System.Net.NetEventSource.Error(null, message, "EndResolve");
347 }
349 }
350 if (System.Net.NetEventSource.Log.IsEnabled())
351 {
352 System.Net.NetEventSource.Info(null, iPHostEntry, "EndResolve");
353 }
354 return iPHostEntry;
355 }
static IPHostEntry CreateHostEntryForAddress(IPAddress address)
Definition Dns.cs:582
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static void End(IAsyncResult asyncResult)
Definition TaskToApm.cs:48

References System.asyncResult, System.Net.Dns.CreateHostEntryForAddress(), System.Threading.Tasks.TaskToApm.End(), System.Net.NetEventSource.Error(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.obj, and System.task.