Make HTTP feature interfaces assembly neutral
This commit is contained in:
parent
98f4212915
commit
ce0e1128d5
|
|
@ -0,0 +1,10 @@
|
|||
using System;
|
||||
|
||||
namespace Microsoft.Net.Runtime
|
||||
{
|
||||
[AssemblyNeutralAttribute]
|
||||
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
|
||||
public sealed class AssemblyNeutralAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
using System.Threading;
|
||||
using Microsoft.Net.Runtime;
|
||||
|
||||
namespace Microsoft.AspNet.HttpFeature
|
||||
{
|
||||
[AssemblyNeutral]
|
||||
public interface IHttpApplicationInformation
|
||||
{
|
||||
string AppName { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
namespace Microsoft.AspNet.HttpFeature
|
||||
using Microsoft.Net.Runtime;
|
||||
|
||||
namespace Microsoft.AspNet.HttpFeature
|
||||
{
|
||||
[AssemblyNeutral]
|
||||
public interface IHttpBuffering
|
||||
{
|
||||
void DisableRequestBuffering();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
using System.Net;
|
||||
using Microsoft.Net.Runtime;
|
||||
|
||||
namespace Microsoft.AspNet.HttpFeature
|
||||
{
|
||||
[AssemblyNeutral]
|
||||
public interface IHttpConnection
|
||||
{
|
||||
IPAddress RemoteIpAddress { get; set; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
using System.Threading;
|
||||
using Microsoft.Net.Runtime;
|
||||
|
||||
namespace Microsoft.AspNet.HttpFeature
|
||||
{
|
||||
[AssemblyNeutral]
|
||||
public interface IHttpRequestLifetime
|
||||
{
|
||||
CancellationToken OnRequestAborted { get; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue