Let UriEndpoint ToString return the Uri (#12668)
This commit is contained in:
parent
bcc962a182
commit
ab73919070
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue