Make HTTP feature interfaces assembly neutral

This commit is contained in:
Wei Wang 2014-04-30 11:46:23 -07:00
parent 98f4212915
commit ce0e1128d5
17 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,10 @@
using System;
namespace Microsoft.Net.Runtime
{
[AssemblyNeutralAttribute]
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public sealed class AssemblyNeutralAttribute : Attribute
{
}
}

View File

@ -1,7 +1,9 @@
using System.Threading;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature
{
[AssemblyNeutral]
public interface IHttpApplicationInformation
{
string AppName { get; set; }

View File

@ -1,5 +1,8 @@
namespace Microsoft.AspNet.HttpFeature
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature
{
[AssemblyNeutral]
public interface IHttpBuffering
{
void DisableRequestBuffering();

View File

@ -1,7 +1,9 @@
using System.Net;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature
{
[AssemblyNeutral]
public interface IHttpConnection
{
IPAddress RemoteIpAddress { get; set; }

View File

@ -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; }

View File

@ -1,7 +1,9 @@
using System.Threading;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature
{
[AssemblyNeutral]
public interface IHttpRequestLifetime
{
CancellationToken OnRequestAborted { get; }

View File

@ -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; }

View File

@ -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);

View File

@ -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; }

View File

@ -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; }

View File

@ -1,7 +1,9 @@
using System.Collections.Generic;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature.Security
{
[AssemblyNeutral]
public interface IAuthTypeContext
{
void Accept(IDictionary<string,object> description);

View File

@ -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<string> AuthenticationTypes { get; }

View File

@ -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);

View File

@ -1,7 +1,9 @@
using System.Collections.Generic;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature.Security
{
[AssemblyNeutral]
public interface IChallengeContext
{
IList<string> AuthenticationTypes {get;}

View File

@ -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; }

View File

@ -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<ClaimsIdentity> Identities { get; }

View File

@ -1,7 +1,9 @@
using System.Collections.Generic;
using Microsoft.Net.Runtime;
namespace Microsoft.AspNet.HttpFeature.Security
{
[AssemblyNeutral]
public interface ISignOutContext
{
IList<string> AuthenticationTypes { get; }