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

Commit ce0e112

Browse files
committed
Make HTTP feature interfaces assembly neutral
1 parent 98f4212 commit ce0e112

17 files changed

+44
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
3+
namespace Microsoft.Net.Runtime
4+
{
5+
[AssemblyNeutralAttribute]
6+
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
7+
public sealed class AssemblyNeutralAttribute : Attribute
8+
{
9+
}
10+
}

src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Threading;
2+
using Microsoft.Net.Runtime;
23

34
namespace Microsoft.AspNet.HttpFeature
45
{
6+
[AssemblyNeutral]
57
public interface IHttpApplicationInformation
68
{
79
string AppName { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
namespace Microsoft.AspNet.HttpFeature
1+
using Microsoft.Net.Runtime;
2+
3+
namespace Microsoft.AspNet.HttpFeature
24
{
5+
[AssemblyNeutral]
36
public interface IHttpBuffering
47
{
58
void DisableRequestBuffering();

src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Net;
2+
using Microsoft.Net.Runtime;
23

34
namespace Microsoft.AspNet.HttpFeature
45
{
6+
[AssemblyNeutral]
57
public interface IHttpConnection
68
{
79
IPAddress RemoteIpAddress { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using Microsoft.Net.Runtime;
45

56
namespace Microsoft.AspNet.HttpFeature
67
{
8+
[AssemblyNeutral]
79
public interface IHttpRequestInformation
810
{
911
string Protocol { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System.Threading;
2+
using Microsoft.Net.Runtime;
23

34
namespace Microsoft.AspNet.HttpFeature
45
{
6+
[AssemblyNeutral]
57
public interface IHttpRequestLifetime
68
{
79
CancellationToken OnRequestAborted { get; }

src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using Microsoft.Net.Runtime;
45

56
namespace Microsoft.AspNet.HttpFeature
67
{
8+
[AssemblyNeutral]
79
public interface IHttpResponseInformation
810
{
911
int StatusCode { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using System.Threading;
22
using System.Threading.Tasks;
3+
using Microsoft.Net.Runtime;
34

45
namespace Microsoft.AspNet.HttpFeature
56
{
7+
[AssemblyNeutral]
68
public interface IHttpSendFile
79
{
810
Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation);

src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
21
using System.Security.Cryptography.X509Certificates;
32
using System.Threading.Tasks;
3+
using Microsoft.Net.Runtime;
44

55
namespace Microsoft.AspNet.HttpFeature
66
{
7+
[AssemblyNeutral]
78
public interface IHttpTransportLayerSecurity
89
{
910
X509Certificate ClientCertificate { get; set; }

src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#if NET45
22
using System.Net.WebSockets;
33
using System.Threading.Tasks;
4+
using Microsoft.Net.Runtime;
45

56
namespace Microsoft.AspNet.HttpFeature
67
{
8+
[AssemblyNeutral]
79
public interface IHttpWebSocketAccept
810
{
911
bool IsWebSocketRequest { get; set; }

0 commit comments

Comments
 (0)