Remove IsLocal
This commit is contained in:
parent
8349419c7f
commit
1f21540fd5
|
|
@ -18,8 +18,6 @@ namespace Microsoft.AspNet.Http
|
||||||
|
|
||||||
public abstract int LocalPort { get; set; }
|
public abstract int LocalPort { get; set; }
|
||||||
|
|
||||||
public abstract bool IsLocal { get; set; }
|
|
||||||
|
|
||||||
public abstract X509Certificate2 ClientCertificate { get; set; }
|
public abstract X509Certificate2 ClientCertificate { get; set; }
|
||||||
|
|
||||||
public abstract Task<X509Certificate2> GetClientCertificateAsync(CancellationToken cancellationToken = new CancellationToken());
|
public abstract Task<X509Certificate2> GetClientCertificateAsync(CancellationToken cancellationToken = new CancellationToken());
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,5 @@ namespace Microsoft.AspNet.Http.Features
|
||||||
IPAddress LocalIpAddress { get; set; }
|
IPAddress LocalIpAddress { get; set; }
|
||||||
int RemotePort { get; set; }
|
int RemotePort { get; set; }
|
||||||
int LocalPort { get; set; }
|
int LocalPort { get; set; }
|
||||||
bool IsLocal { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -59,12 +59,6 @@ namespace Microsoft.AspNet.Http.Internal
|
||||||
set { HttpConnectionFeature.LocalPort = value; }
|
set { HttpConnectionFeature.LocalPort = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsLocal
|
|
||||||
{
|
|
||||||
get { return HttpConnectionFeature.IsLocal; }
|
|
||||||
set { HttpConnectionFeature.IsLocal = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public override X509Certificate2 ClientCertificate
|
public override X509Certificate2 ClientCertificate
|
||||||
{
|
{
|
||||||
get { return TlsConnectionFeature.ClientCertificate; }
|
get { return TlsConnectionFeature.ClientCertificate; }
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,6 @@ namespace Microsoft.AspNet.Http.Features.Internal
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsLocal { get; set; }
|
|
||||||
|
|
||||||
public IPAddress LocalIpAddress { get; set; }
|
public IPAddress LocalIpAddress { get; set; }
|
||||||
|
|
||||||
public int LocalPort { get; set; }
|
public int LocalPort { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ namespace Microsoft.AspNet.Owin
|
||||||
public const string RemotePort = "server.RemotePort";
|
public const string RemotePort = "server.RemotePort";
|
||||||
public const string LocalIpAddress = "server.LocalIpAddress";
|
public const string LocalIpAddress = "server.LocalIpAddress";
|
||||||
public const string LocalPort = "server.LocalPort";
|
public const string LocalPort = "server.LocalPort";
|
||||||
public const string IsLocal = "server.IsLocal";
|
|
||||||
public const string TraceOutput = "host.TraceOutput";
|
public const string TraceOutput = "host.TraceOutput";
|
||||||
public const string Addresses = "host.Addresses";
|
public const string Addresses = "host.Addresses";
|
||||||
public const string AppName = "host.AppName";
|
public const string AppName = "host.AppName";
|
||||||
|
|
|
||||||
|
|
@ -84,8 +84,6 @@ namespace Microsoft.AspNet.Owin
|
||||||
{ OwinConstants.CommonKeys.RemoteIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.RemoteIpAddress.ToString(),
|
{ OwinConstants.CommonKeys.RemoteIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.RemoteIpAddress.ToString(),
|
||||||
(feature, value) => feature.RemoteIpAddress = IPAddress.Parse(Convert.ToString(value))) },
|
(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.SendFiles.SendAsync, new FeatureMap<IHttpSendFileFeature>(feature => new SendFileFunc(feature.SendFileAsync)) },
|
||||||
|
|
||||||
{ OwinConstants.Security.User, new FeatureMap<IHttpAuthenticationFeature>(feature => feature.User,
|
{ OwinConstants.Security.User, new FeatureMap<IHttpAuthenticationFeature>(feature => feature.User,
|
||||||
|
|
|
||||||
|
|
@ -190,12 +190,6 @@ namespace Microsoft.AspNet.Owin
|
||||||
set { Prop(OwinConstants.CommonKeys.LocalPort, value.ToString(CultureInfo.InvariantCulture)); }
|
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
|
private bool SupportsSendFile
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue