aspnetcore/src/Microsoft.AspNet.Http.Abstr.../ConnectionInfo.cs

25 lines
829 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNet.Http
{
public abstract class ConnectionInfo
{
public abstract IPAddress RemoteIpAddress { get; set; }
public abstract int RemotePort { get; set; }
public abstract IPAddress LocalIpAddress { get; set; }
public abstract int LocalPort { get; set; }
public abstract X509Certificate2 ClientCertificate { get; set; }
public abstract Task<X509Certificate2> GetClientCertificateAsync(CancellationToken cancellationToken = new CancellationToken());
}
}