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

Commit 7fd8085

Browse files
committed
Rename all feature interfaces to I*Feature.
1 parent f11e62d commit 7fd8085

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+233
-238
lines changed

src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpApplicationFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Microsoft.AspNet.HttpFeature
2222
{
2323
[AssemblyNeutral]
24-
public interface IHttpApplicationInformation
24+
public interface IHttpApplicationFeature
2525
{
2626
string AppName { get; set; }
2727
string AppMode { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpBufferingFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace Microsoft.AspNet.HttpFeature
2121
{
2222
[AssemblyNeutral]
23-
public interface IHttpBuffering
23+
public interface IHttpBufferingFeature
2424
{
2525
void DisableRequestBuffering();
2626
void DisableResponseBuffering();

src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpConnectionFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Microsoft.AspNet.HttpFeature
2222
{
2323
[AssemblyNeutral]
24-
public interface IHttpConnection
24+
public interface IHttpConnectionFeature
2525
{
2626
IPAddress RemoteIpAddress { get; set; }
2727
IPAddress LocalIpAddress { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpRequestFeature.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace Microsoft.AspNet.HttpFeature
2424
{
2525
[AssemblyNeutral]
26-
public interface IHttpRequestInformation
26+
public interface IHttpRequestFeature
2727
{
2828
string Protocol { get; set; }
2929
string Scheme { get; set; }
@@ -33,11 +33,5 @@ public interface IHttpRequestInformation
3333
string QueryString { get; set; }
3434
IDictionary<string, string[]> Headers { get; set; }
3535
Stream Body { get; set; }
36-
// FURI: Uri Uri { get; }
37-
}
38-
39-
public interface ICanHasSession
40-
{
41-
4236
}
4337
}

src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetimeFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Microsoft.AspNet.HttpFeature
2222
{
2323
[AssemblyNeutral]
24-
public interface IHttpRequestLifetime
24+
public interface IHttpRequestLifetimeFeature
2525
{
2626
CancellationToken OnRequestAborted { get; }
2727
void Abort();

src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpResponseFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace Microsoft.AspNet.HttpFeature
2424
{
2525
[AssemblyNeutral]
26-
public interface IHttpResponseInformation
26+
public interface IHttpResponseFeature
2727
{
2828
int StatusCode { get; set; }
2929
string ReasonPhrase { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpSendFileFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace Microsoft.AspNet.HttpFeature
2323
{
2424
[AssemblyNeutral]
25-
public interface IHttpSendFile
25+
public interface IHttpSendFileFeature
2626
{
2727
Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation);
2828
}

src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurityFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace Microsoft.AspNet.HttpFeature
2323
{
2424
[AssemblyNeutral]
25-
public interface IHttpTransportLayerSecurity
25+
public interface IHttpTransportLayerSecurityFeature
2626
{
2727
X509Certificate ClientCertificate { get; set; }
2828
Task LoadAsync();

src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs renamed to src/Microsoft.AspNet.HttpFeature/IHttpWebSocketFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace Microsoft.AspNet.HttpFeature
2424
{
2525
[AssemblyNeutral]
26-
public interface IHttpWebSocketAccept
26+
public interface IHttpWebSocketFeature
2727
{
2828
bool IsWebSocketRequest { get; set; }
2929
Task<WebSocket> AcceptAsync();

src/Microsoft.AspNet.HttpFeature/Microsoft.AspNet.HttpFeature.kproj

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@
2020
<Content Include="Project.json" />
2121
</ItemGroup>
2222
<ItemGroup>
23-
<Compile Include="IHttpApplicationInformation.cs" />
24-
<Compile Include="IHttpBuffering.cs" />
25-
<Compile Include="IHttpConnection.cs" />
26-
<Compile Include="IHttpRequestInformation.cs" />
27-
<Compile Include="IHttpRequestLifetime.cs" />
28-
<Compile Include="IHttpResponseInformation.cs" />
29-
<Compile Include="IHttpSendFile.cs" />
30-
<Compile Include="IHttpTransportLayerSecurity.cs" />
31-
<Compile Include="IHttpWebSocketAccept.cs" />
23+
<Compile Include="AssemblyNeutralAttribute.cs" />
24+
<Compile Include="IHttpApplicationFeature.cs" />
25+
<Compile Include="IHttpBufferingFeature.cs" />
26+
<Compile Include="IHttpConnectionFeature.cs" />
27+
<Compile Include="IHttpRequestFeature.cs" />
28+
<Compile Include="IHttpRequestLifetimeFeature.cs" />
29+
<Compile Include="IHttpResponseFeature.cs" />
30+
<Compile Include="IHttpSendFileFeature.cs" />
31+
<Compile Include="IHttpTransportLayerSecurityFeature.cs" />
32+
<Compile Include="IHttpWebSocketFeature.cs" />
3233
<Compile Include="Security\IAuthenticateContext.cs" />
3334
<Compile Include="Security\IAuthenticationHandler.cs" />
3435
<Compile Include="Security\IAuthTypeContext.cs" />
3536
<Compile Include="Security\IChallengeContext.cs" />
36-
<Compile Include="Security\IHttpAuthentication.cs" />
37+
<Compile Include="Security\IHttpAuthenticationFeature.cs" />
3738
<Compile Include="Security\ISignInContext.cs" />
3839
<Compile Include="Security\ISignOutContext .cs" />
3940
</ItemGroup>

0 commit comments

Comments
 (0)