Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Http.​ConnectionInfo
Assembly: Microsoft.AspNetCore.Http.Abstractions
Inheritance: object → ConnectionInfo
Represents the underlying connection for a request.
Properties
public
string
Id
Gets or sets a unique identifier to represent this connection.
RemoteIpAddress
Gets or sets the IP address of the remote target. Can be null.
Remarks The result is <c>null</c> if the connection isn't a TCP connection, e.g., a Unix Domain Socket or a transport that isn't TCP based.
public
int
RemotePort
Gets or sets the port of the remote target.
LocalIpAddress
Gets or sets the IP address of the local host.
public
int
LocalPort
Gets or sets the port of the local host.
ClientCertificate
Gets or sets the client certificate.
Methods
public
System.​Threading.​Tasks.​Task<​System.​Security.​Cryptography.​X509Certificates.​X509Certificate2>
GetClientCertificateAsync​(System.​Threading.​CancellationToken cancellationToken = null)
Retrieves the client certificate.
Returns Asynchronously returns an <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> . Can be null.
public
void
RequestClose​()
Close connection gracefully.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object