public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, IPEndPoint endPoint) { builder.WithConnectionFactory(() => new TcpConnection(endPoint)); return(builder); }
public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, EndPoint endPoint) { builder.WithConnectionFactory(format => new TcpConnection(endPoint).StartAsync()); return(builder); }