Class Dns
DNS utility methods.
Inheritance
System.Object
Dns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public static class Dns
Methods
Resolve(String)
Resolves a host name to an IP address.
Declaration
public static Future<string[]> Resolve(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The host name to resolve. |
Returns
Type | Description |
---|---|
Future<System.String[]> |
Resolve(String, Action2<String[], Object>, Object)
Resolves a host name to an IP address.
Declaration
public static void Resolve(string name, Action2<string[], object> callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to resolve. |
Action2<System.String[], System.Object> | callback | The callback to invoke when resolution is complete. |
System.Object | state | A custom state object to pass into the callback. |