Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 1f21540

Browse files
committed
Remove IsLocal
1 parent 8349419 commit 1f21540

File tree

7 files changed

+0
-20
lines changed

7 files changed

+0
-20
lines changed

src/Microsoft.AspNet.Http.Abstractions/ConnectionInfo.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public abstract class ConnectionInfo
1818

1919
public abstract int LocalPort { get; set; }
2020

21-
public abstract bool IsLocal { get; set; }
22-
2321
public abstract X509Certificate2 ClientCertificate { get; set; }
2422

2523
public abstract Task<X509Certificate2> GetClientCertificateAsync(CancellationToken cancellationToken = new CancellationToken());

src/Microsoft.AspNet.Http.Features/IHttpConnectionFeature.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ public interface IHttpConnectionFeature
1111
IPAddress LocalIpAddress { get; set; }
1212
int RemotePort { get; set; }
1313
int LocalPort { get; set; }
14-
bool IsLocal { get; set; }
1514
}
1615
}

src/Microsoft.AspNet.Http/DefaultConnectionInfo.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ public override int LocalPort
5959
set { HttpConnectionFeature.LocalPort = value; }
6060
}
6161

62-
public override bool IsLocal
63-
{
64-
get { return HttpConnectionFeature.IsLocal; }
65-
set { HttpConnectionFeature.IsLocal = value; }
66-
}
67-
6862
public override X509Certificate2 ClientCertificate
6963
{
7064
get { return TlsConnectionFeature.ClientCertificate; }

src/Microsoft.AspNet.Http/Features/HttpConnectionFeature.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ public HttpConnectionFeature()
1111
{
1212
}
1313

14-
public bool IsLocal { get; set; }
15-
1614
public IPAddress LocalIpAddress { get; set; }
1715

1816
public int LocalPort { get; set; }

src/Microsoft.AspNet.Owin/OwinConstants.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ internal static class CommonKeys
7373
public const string RemotePort = "server.RemotePort";
7474
public const string LocalIpAddress = "server.LocalIpAddress";
7575
public const string LocalPort = "server.LocalPort";
76-
public const string IsLocal = "server.IsLocal";
7776
public const string TraceOutput = "host.TraceOutput";
7877
public const string Addresses = "host.Addresses";
7978
public const string AppName = "host.AppName";

src/Microsoft.AspNet.Owin/OwinEnvironment.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ public OwinEnvironment(HttpContext context)
8484
{ OwinConstants.CommonKeys.RemoteIpAddress, new FeatureMap<IHttpConnectionFeature>(feature => feature.RemoteIpAddress.ToString(),
8585
(feature, value) => feature.RemoteIpAddress = IPAddress.Parse(Convert.ToString(value))) },
8686

87-
{ OwinConstants.CommonKeys.IsLocal, new FeatureMap<IHttpConnectionFeature>(feature => feature.IsLocal, (feature, value) => feature.IsLocal = Convert.ToBoolean(value)) },
88-
8987
{ OwinConstants.SendFiles.SendAsync, new FeatureMap<IHttpSendFileFeature>(feature => new SendFileFunc(feature.SendFileAsync)) },
9088

9189
{ OwinConstants.Security.User, new FeatureMap<IHttpAuthenticationFeature>(feature => feature.User,

src/Microsoft.AspNet.Owin/OwinFeatureCollection.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ int IHttpConnectionFeature.LocalPort
190190
set { Prop(OwinConstants.CommonKeys.LocalPort, value.ToString(CultureInfo.InvariantCulture)); }
191191
}
192192

193-
bool IHttpConnectionFeature.IsLocal
194-
{
195-
get { return Prop<bool>(OwinConstants.CommonKeys.IsLocal); }
196-
set { Prop(OwinConstants.CommonKeys.LocalPort, value); }
197-
}
198-
199193
private bool SupportsSendFile
200194
{
201195
get

0 commit comments

Comments
 (0)