Esempio n. 1
0
 public static void Bind <T>(this IBindable <T, IPEndPoint> bindable, IPAddress ipAddress, int port)
 {
     Ensure.ArgumentNotNull(ipAddress, "ipAddress");
     bindable.Bind(new IPEndPoint(ipAddress, port));
 }
Esempio n. 2
0
 public static void Bind <T>(this IBindable <T, IPEndPoint> bindable, string ipAddress, int port)
 {
     Ensure.ArgumentNotNull(ipAddress, "ipAddress");
     bindable.Bind(IPAddress.Parse(ipAddress), port);
 }