コード例 #1
0
        public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, IPEndPoint endPoint)
        {
            builder.WithConnectionFactory(() => new TcpConnection(endPoint));

            return(builder);
        }
コード例 #2
0
        public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, EndPoint endPoint)
        {
            builder.WithConnectionFactory(format => new TcpConnection(endPoint).StartAsync());

            return(builder);
        }