Пример #1
0
 public static void Connect <TType, TEndPoint>(this IConnectable <TType, TEndPoint> client, ILocalAddress <TEndPoint> remote, Action <Exception?>?callback)
 {
     client.Connect(remote.LocalAddress, callback);
 }
Пример #2
0
 public static Task ConnectAsync <TType, TEndPoint>(this IConnectable <TType, TEndPoint> client, ILocalAddress <TEndPoint> localAddress)
 {
     return(HelperFunctions.Wrap(localAddress, client.Connect));
 }