Remove IsLocal

This commit is contained in:
Brennan 2016-01-15 12:43:40 -08:00
parent 8349419c7f
commit 1f21540fd5
7 changed files with 0 additions and 20 deletions

View File

@ -18,8 +18,6 @@ namespace Microsoft.AspNet.Http
public abstract int LocalPort { get; set; }
public abstract bool IsLocal { get; set; }
public abstract X509Certificate2 ClientCertificate { get; set; }
public abstract Task<X509Certificate2> GetClientCertificateAsync(CancellationToken cancellationToken = new CancellationToken());

View File

@ -11,6 +11,5 @@ namespace Microsoft.AspNet.Http.Features
IPAddress LocalIpAddress { get; set; }
int RemotePort { get; set; }
int LocalPort { get; set; }
bool IsLocal { get; set; }
}
}

View File

@ -59,12 +59,6 @@ namespace Microsoft.AspNet.Http.Internal
set { HttpConnectionFeature.LocalPort = value; }
}
public override bool IsLocal
{
get { return HttpConnectionFeature.IsLocal; }
set { HttpConnectionFeature.IsLocal = value; }
}
public override X509Certificate2 ClientCertificate
{
get { return TlsConnectionFeature.ClientCertificate; }

View File

@ -11,8 +11,6 @@ namespace Microsoft.AspNet.Http.Features.Internal
{
}
public bool IsLocal { get; set; }
public IPAddress LocalIpAddress { get; set; }
public int LocalPort { get; set; }

View File

@ -73,7 +73,6 @@ namespace Microsoft.AspNet.Owin
public const string RemotePort = "server.RemotePort";
public const string LocalIpAddress = "server.LocalIpAddress";
public const string LocalPort = "server.LocalPort";
public const string IsLocal = "server.IsLocal";
public const string TraceOutput = "host.TraceOutput";
public const string Addresses = "host.Addresses";
public const string AppName = "host.AppName";

View File

@ -84,8 +84,6 @@ namespace Microsoft.AspNet.Owin
{ OwinConstants.CommonKeys.RemoteIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.RemoteIpAddress.ToString(),
(feature, value) => feature.RemoteIpAddress = IPAddress.Parse(Convert.ToString(value))) },
{ OwinConstants.CommonKeys.IsLocal, new FeatureMap<IHttpConnectionFeature>(feature => feature.IsLocal, (feature, value) => feature.IsLocal = Convert.ToBoolean(value)) },
{ OwinConstants.SendFiles.SendAsync, new FeatureMap<IHttpSendFileFeature>(feature => new SendFileFunc(feature.SendFileAsync)) },
{ OwinConstants.Security.User, new FeatureMap<IHttpAuthenticationFeature>(feature => feature.User,

View File

@ -190,12 +190,6 @@ namespace Microsoft.AspNet.Owin
set { Prop(OwinConstants.CommonKeys.LocalPort, value.ToString(CultureInfo.InvariantCulture)); }
}
bool IHttpConnectionFeature.IsLocal
{
get { return Prop<bool>(OwinConstants.CommonKeys.IsLocal); }
set { Prop(OwinConstants.CommonKeys.LocalPort, value); }
}
private bool SupportsSendFile
{
get