diff --git a/samples/CookieSample/CookieSample.xproj b/samples/CookieSample/CookieSample.xproj
index 0cc8921558..68fbee01bf 100644
--- a/samples/CookieSample/CookieSample.xproj
+++ b/samples/CookieSample/CookieSample.xproj
@@ -1,4 +1,4 @@
-
+
14.0
@@ -12,6 +12,7 @@
2.0
+ 22569
-
+
\ No newline at end of file
diff --git a/samples/CookieSessionSample/CookieSessionSample.xproj b/samples/CookieSessionSample/CookieSessionSample.xproj
index 3dde446f74..1216341876 100644
--- a/samples/CookieSessionSample/CookieSessionSample.xproj
+++ b/samples/CookieSessionSample/CookieSessionSample.xproj
@@ -1,4 +1,4 @@
-
+
14.0
@@ -12,6 +12,7 @@
2.0
+ 22571
-
+
\ No newline at end of file
diff --git a/samples/SocialSample/SocialSample.xproj b/samples/SocialSample/SocialSample.xproj
index 640b2404b4..ce1e69ddf4 100644
--- a/samples/SocialSample/SocialSample.xproj
+++ b/samples/SocialSample/SocialSample.xproj
@@ -1,4 +1,4 @@
-
+
14.0
@@ -12,6 +12,7 @@
2.0
+ 22570
-
+
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/CookieAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.Cookies/CookieAppBuilderExtensions.cs
index 5a00ca2341..3af76b243e 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/CookieAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Cookies/CookieAppBuilderExtensions.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Authentication.Cookies;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/CookieAuthenticationHandler.cs b/src/Microsoft.AspNet.Authentication.Cookies/CookieAuthenticationHandler.cs
index ae7e866fb2..808a2691a2 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/CookieAuthenticationHandler.cs
+++ b/src/Microsoft.AspNet.Authentication.Cookies/CookieAuthenticationHandler.cs
@@ -8,6 +8,7 @@ using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Authentication.Cookies
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/CookieServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.Cookies/CookieServiceCollectionExtensions.cs
index 03632b1a6d..af6d4d3773 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/CookieServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Cookies/CookieServiceCollectionExtensions.cs
@@ -4,7 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.Cookies;
using Microsoft.Framework.ConfigurationModel;
-using Microsoft.Framework.DependencyInjection;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/Infrastructure/ChunkingCookieManager.cs b/src/Microsoft.AspNet.Authentication.Cookies/Infrastructure/ChunkingCookieManager.cs
index 1f953593b2..40008e47b8 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/Infrastructure/ChunkingCookieManager.cs
+++ b/src/Microsoft.AspNet.Authentication.Cookies/Infrastructure/ChunkingCookieManager.cs
@@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Microsoft.AspNet.Http;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Cookies.Infrastructure
{
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.Cookies/NotNullAttribute.cs
deleted file mode 100644
index 44c9fcbb20..0000000000
--- a/src/Microsoft.AspNet.Authentication.Cookies/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.Cookies
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/Notifications/CookieValidateIdentityContext.cs b/src/Microsoft.AspNet.Authentication.Cookies/Notifications/CookieValidateIdentityContext.cs
index 328d93d2bb..f9574bf801 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/Notifications/CookieValidateIdentityContext.cs
+++ b/src/Microsoft.AspNet.Authentication.Cookies/Notifications/CookieValidateIdentityContext.cs
@@ -6,6 +6,7 @@ using System.Security.Principal;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Cookies
{
diff --git a/src/Microsoft.AspNet.Authentication.Cookies/project.json b/src/Microsoft.AspNet.Authentication.Cookies/project.json
index 92bf3d84e0..c2377a44ff 100644
--- a/src/Microsoft.AspNet.Authentication.Cookies/project.json
+++ b/src/Microsoft.AspNet.Authentication.Cookies/project.json
@@ -3,10 +3,11 @@
"description": "ASP.NET middleware that enables an application to use cookie based authentication, similar to ASP.NET's forms authentication.",
"dependencies": {
"Microsoft.AspNet.Authentication": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
"Newtonsoft.Json": "6.0.6"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }
}
-}
+}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Facebook/FacebookAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.Facebook/FacebookAppBuilderExtensions.cs
index c91855790c..0758d43acd 100644
--- a/src/Microsoft.AspNet.Authentication.Facebook/FacebookAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Facebook/FacebookAppBuilderExtensions.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Authentication.Facebook;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.Facebook/FacebookServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.Facebook/FacebookServiceCollectionExtensions.cs
index f6117a10b9..26ab1c0631 100644
--- a/src/Microsoft.AspNet.Authentication.Facebook/FacebookServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Facebook/FacebookServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.Facebook;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.Facebook/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.Facebook/NotNullAttribute.cs
deleted file mode 100644
index 5ce6d99ddd..0000000000
--- a/src/Microsoft.AspNet.Authentication.Facebook/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.Facebook
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Facebook/project.json b/src/Microsoft.AspNet.Authentication.Facebook/project.json
index 2e24f747b7..0dab9e868a 100644
--- a/src/Microsoft.AspNet.Authentication.Facebook/project.json
+++ b/src/Microsoft.AspNet.Authentication.Facebook/project.json
@@ -2,7 +2,8 @@
"version": "1.0.0-*",
"description": "ASP.NET 5 middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow.",
"dependencies": {
- "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*"
+ "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": { },
diff --git a/src/Microsoft.AspNet.Authentication.Google/GoogleAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.Google/GoogleAppBuilderExtensions.cs
index 8613d4368f..dc73a16669 100644
--- a/src/Microsoft.AspNet.Authentication.Google/GoogleAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Google/GoogleAppBuilderExtensions.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Authentication.Google;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.Google/GoogleServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.Google/GoogleServiceCollectionExtensions.cs
index 239dbea29c..6928c48fc9 100644
--- a/src/Microsoft.AspNet.Authentication.Google/GoogleServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Google/GoogleServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.Google;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.Google/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.Google/NotNullAttribute.cs
deleted file mode 100644
index 504a02c4d7..0000000000
--- a/src/Microsoft.AspNet.Authentication.Google/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.Google
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Google/project.json b/src/Microsoft.AspNet.Authentication.Google/project.json
index 37f9e1b2d2..72beb690aa 100644
--- a/src/Microsoft.AspNet.Authentication.Google/project.json
+++ b/src/Microsoft.AspNet.Authentication.Google/project.json
@@ -2,7 +2,8 @@
"version": "1.0.0-*",
"description": "ASP.NET 5 contains middlewares to support Google's OpenId and OAuth 2.0 authentication workflows.",
"dependencies": {
- "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*"
+ "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": { },
diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountAppBuilderExtensions.cs
index e068b5f5a1..a404845c87 100644
--- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountAppBuilderExtensions.cs
@@ -1,9 +1,10 @@
// 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 Microsoft.AspNet.Authentication.MicrosoftAccount;
-using Microsoft.Framework.OptionsModel;
using System;
+using Microsoft.AspNet.Authentication.MicrosoftAccount;
+using Microsoft.Framework.Internal;
+using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
{
diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountServiceCollectionExtensions.cs
index 4fe4f12272..8f0de07558 100644
--- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/MicrosoftAccountServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.MicrosoftAccount;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/NotNullAttribute.cs
deleted file mode 100644
index f2afa991fc..0000000000
--- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.MicrosoftAccount
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Notifications/MicrosoftAccountAuthenticatedContext.cs b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Notifications/MicrosoftAccountAuthenticatedContext.cs
index 50aea11a93..ed55b4de38 100644
--- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Notifications/MicrosoftAccountAuthenticatedContext.cs
+++ b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/Notifications/MicrosoftAccountAuthenticatedContext.cs
@@ -4,9 +4,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Net.Http;
-using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.OAuth;
+using Microsoft.AspNet.Http;
+using Microsoft.Framework.Internal;
using Newtonsoft.Json.Linq;
namespace Microsoft.AspNet.Authentication.MicrosoftAccount
diff --git a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/project.json b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/project.json
index 7b17282de0..6bd7bb3759 100644
--- a/src/Microsoft.AspNet.Authentication.MicrosoftAccount/project.json
+++ b/src/Microsoft.AspNet.Authentication.MicrosoftAccount/project.json
@@ -2,7 +2,8 @@
"version": "1.0.0-*",
"description": "ASP.NET 5 middleware that enables an application to support the Microsoft Account authentication workflow.",
"dependencies": {
- "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*"
+ "Microsoft.AspNet.Authentication.OAuth": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": { },
diff --git a/src/Microsoft.AspNet.Authentication.OAuth/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.OAuth/NotNullAttribute.cs
deleted file mode 100644
index 49f587eb50..0000000000
--- a/src/Microsoft.AspNet.Authentication.OAuth/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.OAuth
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.OAuth/OAuthAuthenticationExtensions.cs b/src/Microsoft.AspNet.Authentication.OAuth/OAuthAuthenticationExtensions.cs
index 903f823e1f..79e669d21b 100644
--- a/src/Microsoft.AspNet.Authentication.OAuth/OAuthAuthenticationExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.OAuth/OAuthAuthenticationExtensions.cs
@@ -2,9 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using System.Globalization;
using Microsoft.AspNet.Authentication.OAuth;
-using Microsoft.AspNet.Authentication;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.OAuth/project.json b/src/Microsoft.AspNet.Authentication.OAuth/project.json
index 2d4145986c..ab9059a181 100644
--- a/src/Microsoft.AspNet.Authentication.OAuth/project.json
+++ b/src/Microsoft.AspNet.Authentication.OAuth/project.json
@@ -3,7 +3,8 @@
"description": "ASP.NET 5 middleware that enables an application to support any standard OAuth 2.0 authentication workflow.",
"dependencies": {
"Microsoft.AspNet.DataProtection": "1.0.0-*",
- "Microsoft.AspNet.Authentication": "1.0.0-*"
+ "Microsoft.AspNet.Authentication": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": {
diff --git a/src/Microsoft.AspNet.Authentication.OAuthBearer/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.OAuthBearer/NotNullAttribute.cs
deleted file mode 100644
index 73b3e6c56b..0000000000
--- a/src/Microsoft.AspNet.Authentication.OAuthBearer/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.OAuthBearer
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerAppBuilderExtensions.cs
index 88151eb160..06be463906 100644
--- a/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerAppBuilderExtensions.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Authentication.OAuthBearer;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerServiceCollectionExtensions.cs
index b195abff89..1b1bce8146 100644
--- a/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.OAuthBearer/OAuthBearerServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.OAuthBearer;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.OAuthBearer/project.json b/src/Microsoft.AspNet.Authentication.OAuthBearer/project.json
index 53c18f6360..504d1eea1f 100644
--- a/src/Microsoft.AspNet.Authentication.OAuthBearer/project.json
+++ b/src/Microsoft.AspNet.Authentication.OAuthBearer/project.json
@@ -3,6 +3,7 @@
"description": "ASP.NET 5 middleware that enables an application to receive a OAuth bearer token.",
"dependencies": {
"Microsoft.AspNet.Authentication": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
"Microsoft.IdentityModel.Protocol.Extensions": "2.0.0-beta1-*",
"System.IdentityModel.Tokens": "5.0.0-beta1-*"
},
diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/NotNullAttribute.cs
deleted file mode 100644
index 6453923f5d..0000000000
--- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.OpenIdConnect
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectServiceCollectionExtensions.cs
index eca491cd5b..6f55448890 100644
--- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/OpenIdConnectServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.OpenIdConnect;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.OpenIdConnect/project.json b/src/Microsoft.AspNet.Authentication.OpenIdConnect/project.json
index 9a24c6db4b..acf34b5c2a 100644
--- a/src/Microsoft.AspNet.Authentication.OpenIdConnect/project.json
+++ b/src/Microsoft.AspNet.Authentication.OpenIdConnect/project.json
@@ -2,6 +2,7 @@
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Authentication": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
"Microsoft.IdentityModel.Protocol.Extensions": "2.0.0-beta1-*"
},
"frameworks": {
diff --git a/src/Microsoft.AspNet.Authentication.Twitter/Messages/RequestTokenSerializer.cs b/src/Microsoft.AspNet.Authentication.Twitter/Messages/RequestTokenSerializer.cs
index b575c70ee1..6305f52bd8 100644
--- a/src/Microsoft.AspNet.Authentication.Twitter/Messages/RequestTokenSerializer.cs
+++ b/src/Microsoft.AspNet.Authentication.Twitter/Messages/RequestTokenSerializer.cs
@@ -1,11 +1,11 @@
// 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;
using System.Diagnostics.CodeAnalysis;
using System.IO;
-using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
+using Microsoft.AspNet.Http.Authentication;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Twitter.Messages
{
diff --git a/src/Microsoft.AspNet.Authentication.Twitter/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication.Twitter/NotNullAttribute.cs
deleted file mode 100644
index c961a0c8f0..0000000000
--- a/src/Microsoft.AspNet.Authentication.Twitter/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication.Twitter
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication.Twitter/TwitterAppBuilderExtensions.cs b/src/Microsoft.AspNet.Authentication.Twitter/TwitterAppBuilderExtensions.cs
index ce27cdadf2..e0d0e0cf78 100644
--- a/src/Microsoft.AspNet.Authentication.Twitter/TwitterAppBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Twitter/TwitterAppBuilderExtensions.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNet.Authentication.Twitter;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Builder
diff --git a/src/Microsoft.AspNet.Authentication.Twitter/TwitterServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authentication.Twitter/TwitterServiceCollectionExtensions.cs
index dad039952c..f34d22945e 100644
--- a/src/Microsoft.AspNet.Authentication.Twitter/TwitterServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authentication.Twitter/TwitterServiceCollectionExtensions.cs
@@ -4,6 +4,7 @@
using System;
using Microsoft.AspNet.Authentication.Twitter;
using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authentication.Twitter/project.json b/src/Microsoft.AspNet.Authentication.Twitter/project.json
index 79ddb1b8bd..33d73fd1c2 100644
--- a/src/Microsoft.AspNet.Authentication.Twitter/project.json
+++ b/src/Microsoft.AspNet.Authentication.Twitter/project.json
@@ -2,7 +2,8 @@
"version": "1.0.0-*",
"description": "ASP.NET 5 middleware that enables an application to support Twitter's OAuth 2.0 authentication workflow.",
"dependencies": {
- "Microsoft.AspNet.Authentication": "1.0.0-*"
+ "Microsoft.AspNet.Authentication": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": {
diff --git a/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs b/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs
index 0e768cf841..93d1ab6298 100644
--- a/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs
+++ b/src/Microsoft.AspNet.Authentication/AuthenticationHandler.cs
@@ -10,6 +10,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Authentication
diff --git a/src/Microsoft.AspNet.Authentication/AuthenticationMiddleware.cs b/src/Microsoft.AspNet.Authentication/AuthenticationMiddleware.cs
index 400a6e74ad..f78eeaa55e 100644
--- a/src/Microsoft.AspNet.Authentication/AuthenticationMiddleware.cs
+++ b/src/Microsoft.AspNet.Authentication/AuthenticationMiddleware.cs
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.RequestContainer;
+using Microsoft.Framework.Internal;
using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Authentication
diff --git a/src/Microsoft.AspNet.Authentication/AuthenticationTokenCreateContext.cs b/src/Microsoft.AspNet.Authentication/AuthenticationTokenCreateContext.cs
index eed3ac761a..1045d477fb 100644
--- a/src/Microsoft.AspNet.Authentication/AuthenticationTokenCreateContext.cs
+++ b/src/Microsoft.AspNet.Authentication/AuthenticationTokenCreateContext.cs
@@ -5,6 +5,7 @@
using System;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication
{
diff --git a/src/Microsoft.AspNet.Authentication/AuthenticationTokenReceiveContext.cs b/src/Microsoft.AspNet.Authentication/AuthenticationTokenReceiveContext.cs
index ea8e854ef2..df309ca063 100644
--- a/src/Microsoft.AspNet.Authentication/AuthenticationTokenReceiveContext.cs
+++ b/src/Microsoft.AspNet.Authentication/AuthenticationTokenReceiveContext.cs
@@ -3,6 +3,7 @@
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication
{
diff --git a/src/Microsoft.AspNet.Authentication/CertificateSubjectKeyIdentifierValidator.cs b/src/Microsoft.AspNet.Authentication/CertificateSubjectKeyIdentifierValidator.cs
index efd71f9b10..5dd663ec71 100644
--- a/src/Microsoft.AspNet.Authentication/CertificateSubjectKeyIdentifierValidator.cs
+++ b/src/Microsoft.AspNet.Authentication/CertificateSubjectKeyIdentifierValidator.cs
@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication
{
diff --git a/src/Microsoft.AspNet.Authentication/CertificateSubjectPublicKeyInfoValidator.cs b/src/Microsoft.AspNet.Authentication/CertificateSubjectPublicKeyInfoValidator.cs
index fdfb0155cb..3c04ca9d81 100644
--- a/src/Microsoft.AspNet.Authentication/CertificateSubjectPublicKeyInfoValidator.cs
+++ b/src/Microsoft.AspNet.Authentication/CertificateSubjectPublicKeyInfoValidator.cs
@@ -10,6 +10,7 @@ using System.Net.Security;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
+using Microsoft.Framework.Internal;
using Microsoft.Win32;
namespace Microsoft.AspNet.Authentication
diff --git a/src/Microsoft.AspNet.Authentication/CertificateThumbprintValidator.cs b/src/Microsoft.AspNet.Authentication/CertificateThumbprintValidator.cs
index 44019b4913..4392108f29 100644
--- a/src/Microsoft.AspNet.Authentication/CertificateThumbprintValidator.cs
+++ b/src/Microsoft.AspNet.Authentication/CertificateThumbprintValidator.cs
@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication
{
diff --git a/src/Microsoft.AspNet.Authentication/DataHandler/Encoder/Base64UrlTextEncoder.cs b/src/Microsoft.AspNet.Authentication/DataHandler/Encoder/Base64UrlTextEncoder.cs
index 93dd1a057c..41cb10abd2 100644
--- a/src/Microsoft.AspNet.Authentication/DataHandler/Encoder/Base64UrlTextEncoder.cs
+++ b/src/Microsoft.AspNet.Authentication/DataHandler/Encoder/Base64UrlTextEncoder.cs
@@ -3,6 +3,7 @@
using System;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder
{
diff --git a/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/PropertiesSerializer.cs b/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/PropertiesSerializer.cs
index 836828cdaa..9b262e6c25 100644
--- a/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/PropertiesSerializer.cs
+++ b/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/PropertiesSerializer.cs
@@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Microsoft.AspNet.Http.Authentication;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer
{
diff --git a/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/TicketSerializer.cs b/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/TicketSerializer.cs
index 9833dad54a..40d80c28d4 100644
--- a/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/TicketSerializer.cs
+++ b/src/Microsoft.AspNet.Authentication/DataHandler/Serializer/TicketSerializer.cs
@@ -5,6 +5,7 @@ using System;
using System.IO;
using System.Linq;
using System.Security.Claims;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer
{
diff --git a/src/Microsoft.AspNet.Authentication/NotNullAttribute.cs b/src/Microsoft.AspNet.Authentication/NotNullAttribute.cs
deleted file mode 100644
index a307633176..0000000000
--- a/src/Microsoft.AspNet.Authentication/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authentication
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authentication/SecurityHelper.cs b/src/Microsoft.AspNet.Authentication/SecurityHelper.cs
index 1e73888c6a..cb1b1fe1c4 100644
--- a/src/Microsoft.AspNet.Authentication/SecurityHelper.cs
+++ b/src/Microsoft.AspNet.Authentication/SecurityHelper.cs
@@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Microsoft.AspNet.Http;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication
{
diff --git a/src/Microsoft.AspNet.Authentication/project.json b/src/Microsoft.AspNet.Authentication/project.json
index 255d92129e..609f641adb 100644
--- a/src/Microsoft.AspNet.Authentication/project.json
+++ b/src/Microsoft.AspNet.Authentication/project.json
@@ -6,7 +6,8 @@
"Microsoft.AspNet.RequestContainer": "1.0.0-*",
"Microsoft.AspNet.Http.Interfaces": "1.0.0-*",
"Microsoft.AspNet.Http.Core": "1.0.0-*",
- "Microsoft.Framework.Logging": "1.0.0-*"
+ "Microsoft.Framework.Logging": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"dnx451": { },
diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationContext.cs b/src/Microsoft.AspNet.Authorization/AuthorizationContext.cs
index 4044b84f57..8b051fcdc0 100644
--- a/src/Microsoft.AspNet.Authorization/AuthorizationContext.cs
+++ b/src/Microsoft.AspNet.Authorization/AuthorizationContext.cs
@@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authorization
{
diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationOptions.cs b/src/Microsoft.AspNet.Authorization/AuthorizationOptions.cs
index 708ed1abc6..d23a0effe2 100644
--- a/src/Microsoft.AspNet.Authorization/AuthorizationOptions.cs
+++ b/src/Microsoft.AspNet.Authorization/AuthorizationOptions.cs
@@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authorization
{
diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs b/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs
index ca9fcc203a..2ade0a15fc 100644
--- a/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs
+++ b/src/Microsoft.AspNet.Authorization/AuthorizationPolicy.cs
@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authorization
{
diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationPolicyBuilder.cs b/src/Microsoft.AspNet.Authorization/AuthorizationPolicyBuilder.cs
index f2f24746c6..976d997cc2 100644
--- a/src/Microsoft.AspNet.Authorization/AuthorizationPolicyBuilder.cs
+++ b/src/Microsoft.AspNet.Authorization/AuthorizationPolicyBuilder.cs
@@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authorization
{
diff --git a/src/Microsoft.AspNet.Authorization/AuthorizationServiceExtensions.cs b/src/Microsoft.AspNet.Authorization/AuthorizationServiceExtensions.cs
index 595d88077e..03f112b738 100644
--- a/src/Microsoft.AspNet.Authorization/AuthorizationServiceExtensions.cs
+++ b/src/Microsoft.AspNet.Authorization/AuthorizationServiceExtensions.cs
@@ -4,6 +4,7 @@
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
+using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authorization
{
diff --git a/src/Microsoft.AspNet.Authorization/NotNullAttribute.cs b/src/Microsoft.AspNet.Authorization/NotNullAttribute.cs
deleted file mode 100644
index 64ea6d5736..0000000000
--- a/src/Microsoft.AspNet.Authorization/NotNullAttribute.cs
+++ /dev/null
@@ -1,12 +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.AspNet.Authorization
-{
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
- internal sealed class NotNullAttribute : Attribute
- {
- }
-}
\ No newline at end of file
diff --git a/src/Microsoft.AspNet.Authorization/ServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Authorization/ServiceCollectionExtensions.cs
index 0fd1b1bb8b..e825684b3d 100644
--- a/src/Microsoft.AspNet.Authorization/ServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Authorization/ServiceCollectionExtensions.cs
@@ -3,7 +3,7 @@
using System;
using Microsoft.AspNet.Authorization;
-using Microsoft.Framework.ConfigurationModel;
+using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
diff --git a/src/Microsoft.AspNet.Authorization/project.json b/src/Microsoft.AspNet.Authorization/project.json
index ce146a3eb9..3a8701e86d 100644
--- a/src/Microsoft.AspNet.Authorization/project.json
+++ b/src/Microsoft.AspNet.Authorization/project.json
@@ -4,6 +4,7 @@
"dependencies": {
"Microsoft.AspNet.Http.Interfaces": "1.0.0-*",
"Microsoft.Framework.Logging": "1.0.0-*",
+ "Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
"Microsoft.Framework.OptionsModel": "1.0.0-*"
},
"frameworks": {