/// <summary> /// Configures the <see cref="HubConnection" /> to use HTTP-based transports to connect to the specified URL. /// </summary> /// <param name="hubConnectionBuilder">The <see cref="HubConnectionBuilder" /> to configure.</param> /// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> /// <returns>The same instance of the <see cref="HubConnectionBuilder"/> for chaining.</returns> public static HubConnectionBuilder WithUrl(this HubConnectionBuilder hubConnectionBuilder, Uri url) { hubConnectionBuilder.WithUrlCore(url); return(hubConnectionBuilder); }
/// <summary> /// Configures the <see cref="HubConnection" /> to use HTTP-based transports to connect to the specified URL and transports. /// </summary> /// <param name="hubConnectionBuilder">The <see cref="HubConnectionBuilder" /> to configure.</param> /// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> /// <param name="transports">A bitmask combining one or more <see cref="HttpTransportType"/> values that specify what transports the client should use.</param> /// <returns>The same instance of the <see cref="HubConnectionBuilder"/> for chaining.</returns> public static HubConnectionBuilder WithUrl(this HubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType transports) { hubConnectionBuilder.WithUrlCore(url, transports); return(hubConnectionBuilder); }
/// <summary> /// Configures the <see cref="HubConnection" /> to use HTTP-based transports to connect to the specified URL. /// </summary> /// <param name="hubConnectionBuilder">The <see cref="HubConnectionBuilder" /> to configure.</param> /// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> /// <returns>The same instance of the <see cref="HubConnectionBuilder"/> for chaining.</returns> public static HubConnectionBuilder WithUrl(this HubConnectionBuilder hubConnectionBuilder, string url) { hubConnectionBuilder.WithUrlCore(new Uri(url)); return(hubConnectionBuilder); }