1 type derived from UriEndPoint
Microsoft.AspNetCore.SignalR.Client (1)
HubConnectionBuilderHttpExtensions.cs (1)
168private sealed class HttpConnectionOptionsDerivedHttpEndPoint : UriEndPoint
9 instantiations of UriEndPoint
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (2)
355RemoteEndPoint = new UriEndPoint(Utils.CreateEndPointUri(uri)); 411RemoteEndPoint = new UriEndPoint(Utils.CreateEndPointUri(uri));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (1)
425var customEndpoint = new UriEndPoint(new("http://localhost:5000"));
ListenOptionsTests.cs (1)
71var listenOptions = new ListenOptions(new UriEndPoint(new Uri("http://127.0.0.1:5555")));
Microsoft.AspNetCore.SignalR.Client.Tests (4)
HttpConnectionFactoryTests.cs (2)
40await Assert.ThrowsAnyAsync<Exception>(async () => await factory.ConnectAsync(new UriEndPoint(new Uri("http://example.com")))); 72var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await factory.ConnectAsync(new UriEndPoint(url2)));
HubConnectionTests.Tracing.cs (2)
147connection.RemoteEndPoint = new UriEndPoint(new Uri("http://example.net")); 187connection.RemoteEndPoint = new UriEndPoint(new Uri("http://example.net:5050"));
Sockets.BindTests (1)
SocketTransportFactoryTests.cs (1)
21await Assert.ThrowsAsync<NotImplementedException>(async () => await socketTransportFactory.BindAsync(new UriEndPoint(new Uri("http://127.0.0.1:5554"))));
15 references to UriEndPoint
Microsoft.AspNetCore.Connections.Abstractions (1)
UriEndPoint.cs (1)
15/// Initializes a new instance of the <see cref="UriEndPoint"/> class.
Microsoft.AspNetCore.Http.Connections.Client (6)
HttpConnectionFactory.cs (6)
37/// Creates a new connection to an <see cref="UriEndPoint"/>. 39/// <param name="endPoint">The <see cref="UriEndPoint"/> to connect to.</param> 48if (!(endPoint is UriEndPoint uriEndPoint)) 50throw new NotSupportedException($"The provided {nameof(EndPoint)} must be of type {nameof(UriEndPoint)}."); 55throw new InvalidOperationException($"If {nameof(HttpConnectionOptions)}.{nameof(HttpConnectionOptions.Url)} was set, it must match the {nameof(UriEndPoint)}.{nameof(UriEndPoint.Uri)} passed to {nameof(ConnectAsync)}.");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
KestrelServerTests.cs (1)
425var customEndpoint = new UriEndPoint(new("http://localhost:5000"));
ListenOptionsTests.cs (2)
72Assert.IsType<UriEndPoint>(listenOptions.EndPoint); 73Assert.Equal("http://127.0.0.1:5555/", ((UriEndPoint)listenOptions.EndPoint).Uri.ToString());
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
244_serviceName = (_endPoint is UriEndPoint e) ? e.Uri.AbsolutePath.Trim('/') : null; 1035var initialUri = (_endPoint as UriEndPoint)?.Uri; 2150ConnectionUrl = (connection.RemoteEndPoint is UriEndPoint ep) ? ep.Uri : null;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
77var httpEndpoint = (UriEndPoint)endPoint;