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 System.Threading;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpApplicationInformation
|
public interface IHttpApplicationInformation
|
||||||
{
|
{
|
||||||
string AppName { get; set; }
|
string AppName { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpBuffering
|
public interface IHttpBuffering
|
||||||
{
|
{
|
||||||
void DisableRequestBuffering();
|
void DisableRequestBuffering();
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpConnection
|
public interface IHttpConnection
|
||||||
{
|
{
|
||||||
IPAddress RemoteIpAddress { get; set; }
|
IPAddress RemoteIpAddress { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpRequestInformation
|
public interface IHttpRequestInformation
|
||||||
{
|
{
|
||||||
string Protocol { get; set; }
|
string Protocol { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpRequestLifetime
|
public interface IHttpRequestLifetime
|
||||||
{
|
{
|
||||||
CancellationToken OnRequestAborted { get; }
|
CancellationToken OnRequestAborted { get; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpResponseInformation
|
public interface IHttpResponseInformation
|
||||||
{
|
{
|
||||||
int StatusCode { get; set; }
|
int StatusCode { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpSendFile
|
public interface IHttpSendFile
|
||||||
{
|
{
|
||||||
Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation);
|
Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
|
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpTransportLayerSecurity
|
public interface IHttpTransportLayerSecurity
|
||||||
{
|
{
|
||||||
X509Certificate ClientCertificate { get; set; }
|
X509Certificate ClientCertificate { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
#if NET45
|
#if NET45
|
||||||
using System.Net.WebSockets;
|
using System.Net.WebSockets;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature
|
namespace Microsoft.AspNet.HttpFeature
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpWebSocketAccept
|
public interface IHttpWebSocketAccept
|
||||||
{
|
{
|
||||||
bool IsWebSocketRequest { get; set; }
|
bool IsWebSocketRequest { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IAuthTypeContext
|
public interface IAuthTypeContext
|
||||||
{
|
{
|
||||||
void Accept(IDictionary<string,object> description);
|
void Accept(IDictionary<string,object> description);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IAuthenticateContext
|
public interface IAuthenticateContext
|
||||||
{
|
{
|
||||||
IList<string> AuthenticationTypes { get; }
|
IList<string> AuthenticationTypes { get; }
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IAuthenticationHandler
|
public interface IAuthenticationHandler
|
||||||
{
|
{
|
||||||
void GetDescriptions(IAuthTypeContext context);
|
void GetDescriptions(IAuthTypeContext context);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IChallengeContext
|
public interface IChallengeContext
|
||||||
{
|
{
|
||||||
IList<string> AuthenticationTypes {get;}
|
IList<string> AuthenticationTypes {get;}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface IHttpAuthentication
|
public interface IHttpAuthentication
|
||||||
{
|
{
|
||||||
ClaimsPrincipal User { get; set; }
|
ClaimsPrincipal User { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface ISignInContext
|
public interface ISignInContext
|
||||||
{
|
{
|
||||||
IList<ClaimsIdentity> Identities { get; }
|
IList<ClaimsIdentity> Identities { get; }
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Net.Runtime;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.HttpFeature.Security
|
namespace Microsoft.AspNet.HttpFeature.Security
|
||||||
{
|
{
|
||||||
|
[AssemblyNeutral]
|
||||||
public interface ISignOutContext
|
public interface ISignOutContext
|
||||||
{
|
{
|
||||||
IList<string> AuthenticationTypes { get; }
|
IList<string> AuthenticationTypes { get; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue