Exemplo 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));
 }
Exemplo 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);
 }