Removing ANIs

This commit is contained in:
Pranav K 2015-02-12 09:07:47 -08:00
parent e5c6fd401f
commit 26cd8d51b6
26 changed files with 1 additions and 74 deletions

View File

@ -3,8 +3,6 @@
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Core namespace Microsoft.AspNet.Http.Core
{ {

View File

@ -1,13 +0,0 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.Framework.Runtime
{
[AssemblyNeutralAttribute]
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public sealed class AssemblyNeutralAttribute : Attribute
{
}
}

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading; using System.Threading;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpApplicationFeature public interface IHttpApplicationFeature
{ {
string AppName { get; set; } string AppName { get; set; }

View File

@ -1,11 +1,8 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpBufferingFeature public interface IHttpBufferingFeature
{ {
void DisableRequestBuffering(); void DisableRequestBuffering();

View File

@ -4,11 +4,9 @@
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpClientCertificateFeature public interface IHttpClientCertificateFeature
{ {
/// <summary> /// <summary>

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net; using System.Net;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpConnectionFeature public interface IHttpConnectionFeature
{ {
IPAddress RemoteIpAddress { get; set; } IPAddress RemoteIpAddress { get; set; }

View File

@ -1,14 +1,11 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpRequestFeature public interface IHttpRequestFeature
{ {
string Protocol { get; set; } string Protocol { get; set; }

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading; using System.Threading;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpRequestLifetimeFeature public interface IHttpRequestLifetimeFeature
{ {
CancellationToken RequestAborted { get; } CancellationToken RequestAborted { get; }

View File

@ -4,11 +4,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpResponseFeature public interface IHttpResponseFeature
{ {
int StatusCode { get; set; } int StatusCode { get; set; }

View File

@ -3,11 +3,9 @@
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpSendFileFeature public interface IHttpSendFileFeature
{ {
Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation); Task SendFileAsync(string path, long offset, long? length, CancellationToken cancellation);

View File

@ -3,11 +3,9 @@
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpUpgradeFeature public interface IHttpUpgradeFeature
{ {
bool IsUpgradableRequest { get; } bool IsUpgradableRequest { get; }

View File

@ -3,11 +3,9 @@
using System.Net.WebSockets; using System.Net.WebSockets;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IHttpWebSocketFeature public interface IHttpWebSocketFeature
{ {
bool IsWebSocketRequest { get; } bool IsWebSocketRequest { get; }

View File

@ -3,11 +3,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface ISession public interface ISession
{ {
void Load(); void Load();

View File

@ -1,12 +1,8 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface ISessionFactory public interface ISessionFactory
{ {
bool IsAvailable { get; } bool IsAvailable { get; }

View File

@ -1,12 +1,9 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
// TODO: Is there any reason not to flatten the Factory down into the Feature? // TODO: Is there any reason not to flatten the Factory down into the Feature?
[AssemblyNeutral]
public interface ISessionFeature public interface ISessionFeature
{ {
ISessionFactory Factory { get; set; } ISessionFactory Factory { get; set; }

View File

@ -1,9 +1,6 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
/// <summary> /// <summary>
@ -15,7 +12,6 @@ namespace Microsoft.AspNet.Http.Interfaces
/// client's machine. See https://datatracker.ietf.org/doc/draft-popov-token-binding/ /// client's machine. See https://datatracker.ietf.org/doc/draft-popov-token-binding/
/// for more information. /// for more information.
/// </remarks> /// </remarks>
[AssemblyNeutral]
public interface ITlsTokenBindingFeature public interface ITlsTokenBindingFeature
{ {
/// <summary> /// <summary>

View File

@ -1,11 +1,8 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces namespace Microsoft.AspNet.Http.Interfaces
{ {
[AssemblyNeutral]
public interface IWebSocketAcceptContext public interface IWebSocketAcceptContext
{ {
string SubProtocol { get; set; } string SubProtocol { get; set; }

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface IAuthTypeContext public interface IAuthTypeContext
{ {
void Accept(IDictionary<string,object> description); void Accept(IDictionary<string,object> description);

View File

@ -3,11 +3,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface IAuthenticateContext public interface IAuthenticateContext
{ {
IEnumerable<string> AuthenticationTypes { get; } IEnumerable<string> AuthenticationTypes { get; }

View File

@ -1,13 +1,10 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface IAuthenticationHandler public interface IAuthenticationHandler
{ {
void GetDescriptions(IAuthTypeContext context); void GetDescriptions(IAuthTypeContext context);

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface IChallengeContext public interface IChallengeContext
{ {
IEnumerable<string> AuthenticationTypes {get;} IEnumerable<string> AuthenticationTypes {get;}

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Security.Claims; using System.Security.Claims;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface IHttpAuthenticationFeature public interface IHttpAuthenticationFeature
{ {
ClaimsPrincipal User { get; set; } ClaimsPrincipal User { get; set; }

View File

@ -3,11 +3,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface ISignInContext public interface ISignInContext
{ {
IEnumerable<ClaimsIdentity> Identities { get; } IEnumerable<ClaimsIdentity> Identities { get; }

View File

@ -2,11 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.Http.Interfaces.Security namespace Microsoft.AspNet.Http.Interfaces.Security
{ {
[AssemblyNeutral]
public interface ISignOutContext public interface ISignOutContext
{ {
IEnumerable<string> AuthenticationTypes { get; } IEnumerable<string> AuthenticationTypes { get; }

View File

@ -6,14 +6,10 @@
"aspnetcore50": { "aspnetcore50": {
"dependencies": { "dependencies": {
"Microsoft.Net.WebSocketAbstractions": "1.0.0-*", "Microsoft.Net.WebSocketAbstractions": "1.0.0-*",
"System.IO": "4.0.10-beta-*",
"System.Net.Primitives": "4.0.10-beta-*", "System.Net.Primitives": "4.0.10-beta-*",
"System.Runtime": "4.0.20-beta-*",
"System.Runtime.InteropServices": "4.0.20-beta-*",
"System.Security.Claims": "4.0.0-beta-*", "System.Security.Claims": "4.0.0-beta-*",
"System.Security.Cryptography.X509Certificates": "4.0.0-beta-*", "System.Security.Cryptography.X509Certificates": "4.0.0-beta-*",
"System.Security.Principal": "4.0.0-beta-*", "System.Security.Principal": "4.0.0-beta-*"
"System.Threading.Tasks": "4.0.10-beta-*"
} }
} }
} }

View File

@ -3,7 +3,6 @@
namespace Microsoft.AspNet.Builder namespace Microsoft.AspNet.Builder
{ {
// TODO: [AssemblyNeutral]
public interface IServerInformation public interface IServerInformation
{ {
string Name { get; } string Name { get; }