diff --git a/src/Microsoft.AspNet.HttpFeature/AssemblyNeutralAttribute.cs b/src/Microsoft.AspNet.HttpFeature/AssemblyNeutralAttribute.cs new file mode 100644 index 0000000000..1aa358ee9f --- /dev/null +++ b/src/Microsoft.AspNet.HttpFeature/AssemblyNeutralAttribute.cs @@ -0,0 +1,10 @@ +using System; + +namespace Microsoft.Net.Runtime +{ + [AssemblyNeutralAttribute] + [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)] + public sealed class AssemblyNeutralAttribute : Attribute + { + } +} \ No newline at end of file diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs b/src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs index 37dea109ab..92100273e2 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpApplicationInformation.cs @@ -1,7 +1,9 @@ using System.Threading; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpApplicationInformation { string AppName { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs b/src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs index e13fde6988..5a996c4299 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpBuffering.cs @@ -1,5 +1,8 @@ -namespace Microsoft.AspNet.HttpFeature +using Microsoft.Net.Runtime; + +namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpBuffering { void DisableRequestBuffering(); diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs b/src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs index 3598c015f1..73a76ffbf0 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpConnection.cs @@ -1,7 +1,9 @@ using System.Net; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpConnection { IPAddress RemoteIpAddress { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs b/src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs index a293218830..b223d151e4 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpRequestInformation.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.IO; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpRequestInformation { string Protocol { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs b/src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs index 3ea7a0ee34..41728c5869 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpRequestLifetime.cs @@ -1,7 +1,9 @@ using System.Threading; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpRequestLifetime { CancellationToken OnRequestAborted { get; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs b/src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs index ce0185c88e..090c0f9107 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpResponseInformation.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.IO; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpResponseInformation { int StatusCode { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs b/src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs index f64ea29264..faeed5f775 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpSendFile.cs @@ -1,8 +1,10 @@ using System.Threading; using System.Threading.Tasks; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpSendFile { Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation); diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs b/src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs index fd08f2b076..e759aef2b9 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpTransportLayerSecurity.cs @@ -1,9 +1,10 @@ - using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpTransportLayerSecurity { X509Certificate ClientCertificate { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs b/src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs index d7b230df24..772dd96f32 100644 --- a/src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs +++ b/src/Microsoft.AspNet.HttpFeature/IHttpWebSocketAccept.cs @@ -1,9 +1,11 @@ #if NET45 using System.Net.WebSockets; using System.Threading.Tasks; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature { + [AssemblyNeutral] public interface IHttpWebSocketAccept { bool IsWebSocketRequest { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IAuthTypeContext.cs b/src/Microsoft.AspNet.HttpFeature/Security/IAuthTypeContext.cs index e91797ceca..df9e9b4aca 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IAuthTypeContext.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IAuthTypeContext.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface IAuthTypeContext { void Accept(IDictionary description); diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticateContext.cs b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticateContext.cs index 7f617e08a2..dc26a4eeaf 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticateContext.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticateContext.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; using System.Security.Claims; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface IAuthenticateContext { IList AuthenticationTypes { get; } diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationHandler.cs b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationHandler.cs index 8a519b5de9..efc3a3b344 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationHandler.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IAuthenticationHandler.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; using System.Threading.Tasks; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface IAuthenticationHandler { void GetDescriptions(IAuthTypeContext context); diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IChallengeContext.cs b/src/Microsoft.AspNet.HttpFeature/Security/IChallengeContext.cs index 2707c6c63d..d684fe7542 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IChallengeContext.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IChallengeContext.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface IChallengeContext { IList AuthenticationTypes {get;} diff --git a/src/Microsoft.AspNet.HttpFeature/Security/IHttpAuthentication.cs b/src/Microsoft.AspNet.HttpFeature/Security/IHttpAuthentication.cs index d1a7c16596..0d24c184f7 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/IHttpAuthentication.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/IHttpAuthentication.cs @@ -1,7 +1,9 @@ using System.Security.Claims; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface IHttpAuthentication { ClaimsPrincipal User { get; set; } diff --git a/src/Microsoft.AspNet.HttpFeature/Security/ISignInContext.cs b/src/Microsoft.AspNet.HttpFeature/Security/ISignInContext.cs index cb78f661b2..0a57985f62 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/ISignInContext.cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/ISignInContext.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; using System.Security.Claims; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface ISignInContext { IList Identities { get; } diff --git a/src/Microsoft.AspNet.HttpFeature/Security/ISignOutContext .cs b/src/Microsoft.AspNet.HttpFeature/Security/ISignOutContext .cs index 9a1232ff3a..6a27a9e5ea 100644 --- a/src/Microsoft.AspNet.HttpFeature/Security/ISignOutContext .cs +++ b/src/Microsoft.AspNet.HttpFeature/Security/ISignOutContext .cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using Microsoft.Net.Runtime; namespace Microsoft.AspNet.HttpFeature.Security { + [AssemblyNeutral] public interface ISignOutContext { IList AuthenticationTypes { get; }