Added a (Uri,HttpMessageHandler) ctor for HttpConnection (#609)
This commit is contained in:
parent
dc29e98032
commit
b2bc4e6207
|
|
@ -39,7 +39,11 @@ namespace Microsoft.AspNetCore.Sockets.Client
|
||||||
public event Action<Exception> Closed;
|
public event Action<Exception> Closed;
|
||||||
|
|
||||||
public HttpConnection(Uri url)
|
public HttpConnection(Uri url)
|
||||||
: this(url, TransportType.WebSockets)
|
: this(url, TransportType.All)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
public HttpConnection(Uri url, HttpMessageHandler httpMessageHandler)
|
||||||
|
: this(url, TransportType.All, loggerFactory: null, httpMessageHandler: httpMessageHandler)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public HttpConnection(Uri url, TransportType transportType)
|
public HttpConnection(Uri url, TransportType transportType)
|
||||||
|
|
@ -48,7 +52,7 @@ namespace Microsoft.AspNetCore.Sockets.Client
|
||||||
}
|
}
|
||||||
|
|
||||||
public HttpConnection(Uri url, ILoggerFactory loggerFactory)
|
public HttpConnection(Uri url, ILoggerFactory loggerFactory)
|
||||||
: this(url, TransportType.WebSockets, loggerFactory, httpMessageHandler: null)
|
: this(url, TransportType.All, loggerFactory, httpMessageHandler: null)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue