예제 #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));
 }
예제 #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);
 }