Let UriEndpoint ToString return the Uri (#12668)

This commit is contained in:
Philipp 2019-10-11 04:30:13 +02:00 committed by Stephen Halter
parent bcc962a182
commit ab73919070
4 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,7 @@ namespace Microsoft.AspNetCore.Connections
{
public UriEndPoint(System.Uri uri) { }
public System.Uri Uri { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override string ToString() { throw null; }
}
}
namespace Microsoft.AspNetCore.Connections.Features

View File

@ -133,6 +133,7 @@ namespace Microsoft.AspNetCore.Connections
{
public UriEndPoint(System.Uri uri) { }
public System.Uri Uri { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override string ToString() { throw null; }
}
}
namespace Microsoft.AspNetCore.Connections.Features

View File

@ -133,6 +133,7 @@ namespace Microsoft.AspNetCore.Connections
{
public UriEndPoint(System.Uri uri) { }
public System.Uri Uri { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override string ToString() { throw null; }
}
}
namespace Microsoft.AspNetCore.Connections.Features

View File

@ -24,5 +24,7 @@ namespace Microsoft.AspNetCore.Connections
/// The <see cref="System.Uri"/> defining the <see cref="EndPoint"/>.
/// </summary>
public Uri Uri { get; }
public override string ToString() => Uri.ToString();
}
}