public static void Connect <TType, TEndPoint>(this IConnectable <TType, TEndPoint> client, ILocalAddress <TEndPoint> remote, Action <Exception?>?callback) { client.Connect(remote.LocalAddress, callback); }
public static Task ConnectAsync <TType, TEndPoint>(this IConnectable <TType, TEndPoint> client, ILocalAddress <TEndPoint> localAddress) { return(HelperFunctions.Wrap(localAddress, client.Connect)); }