From 1553c674a4e13f42142c078e086daf4cff6f5166 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Tue, 4 Mar 2014 15:43:43 -0800 Subject: [PATCH] Back to using System.Security.Claims namespace --- src/Microsoft.AspNet.Identity.InMemory/InMemoryRole.cs | 3 --- src/Microsoft.AspNet.Identity.InMemory/InMemoryUser.cs | 4 ---- .../InMemoryUserStore.cs | 4 ---- src/Microsoft.AspNet.Identity/Crypto.cs | 7 ------- src/Microsoft.AspNet.Identity/IClaimsIdentityFactory.cs | 4 ---- src/Microsoft.AspNet.Identity/IUserClaimStore.cs | 4 ---- src/Microsoft.AspNet.Identity/UserManager.cs | 4 ---- 7 files changed, 30 deletions(-) diff --git a/src/Microsoft.AspNet.Identity.InMemory/InMemoryRole.cs b/src/Microsoft.AspNet.Identity.InMemory/InMemoryRole.cs index aff560f8b0..a4efda043e 100644 --- a/src/Microsoft.AspNet.Identity.InMemory/InMemoryRole.cs +++ b/src/Microsoft.AspNet.Identity.InMemory/InMemoryRole.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AspNet.Identity; namespace Microsoft.AspNet.Identity.InMemory { diff --git a/src/Microsoft.AspNet.Identity.InMemory/InMemoryUser.cs b/src/Microsoft.AspNet.Identity.InMemory/InMemoryUser.cs index ae445848d7..f9e18f29a7 100644 --- a/src/Microsoft.AspNet.Identity.InMemory/InMemoryUser.cs +++ b/src/Microsoft.AspNet.Identity.InMemory/InMemoryUser.cs @@ -1,10 +1,6 @@ using System; using System.Collections.Generic; -#if NET45 using System.Security.Claims; -#else -using System.Security.ClaimsK; -#endif namespace Microsoft.AspNet.Identity.InMemory { diff --git a/src/Microsoft.AspNet.Identity.InMemory/InMemoryUserStore.cs b/src/Microsoft.AspNet.Identity.InMemory/InMemoryUserStore.cs index 4193b062da..96aab7058c 100644 --- a/src/Microsoft.AspNet.Identity.InMemory/InMemoryUserStore.cs +++ b/src/Microsoft.AspNet.Identity.InMemory/InMemoryUserStore.cs @@ -1,11 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; -#if NET45 using System.Security.Claims; -#else -using System.Security.ClaimsK; -#endif using System.Threading.Tasks; namespace Microsoft.AspNet.Identity.InMemory diff --git a/src/Microsoft.AspNet.Identity/Crypto.cs b/src/Microsoft.AspNet.Identity/Crypto.cs index eae67a17c1..86e26060c0 100644 --- a/src/Microsoft.AspNet.Identity/Crypto.cs +++ b/src/Microsoft.AspNet.Identity/Crypto.cs @@ -6,12 +6,5 @@ using System.Runtime.CompilerServices; namespace Microsoft.AspNet.Identity { - public class Foo - { - public Foo() - { - System.Security.Cryptography.Rfc2898DeriveBytes foo = null; - } - } } #endif \ No newline at end of file diff --git a/src/Microsoft.AspNet.Identity/IClaimsIdentityFactory.cs b/src/Microsoft.AspNet.Identity/IClaimsIdentityFactory.cs index 1a4518016c..57985e2258 100644 --- a/src/Microsoft.AspNet.Identity/IClaimsIdentityFactory.cs +++ b/src/Microsoft.AspNet.Identity/IClaimsIdentityFactory.cs @@ -1,9 +1,5 @@ using System; -#if NET45 using System.Security.Claims; -#else -using System.Security.ClaimsK; -#endif using System.Threading.Tasks; namespace Microsoft.AspNet.Identity diff --git a/src/Microsoft.AspNet.Identity/IUserClaimStore.cs b/src/Microsoft.AspNet.Identity/IUserClaimStore.cs index 043aa00274..165875c940 100644 --- a/src/Microsoft.AspNet.Identity/IUserClaimStore.cs +++ b/src/Microsoft.AspNet.Identity/IUserClaimStore.cs @@ -1,9 +1,5 @@ using System.Collections.Generic; -#if NET45 using System.Security.Claims; -#else -using System.Security.ClaimsK; -#endif using System.Threading.Tasks; namespace Microsoft.AspNet.Identity diff --git a/src/Microsoft.AspNet.Identity/UserManager.cs b/src/Microsoft.AspNet.Identity/UserManager.cs index 7749affe20..7535483f23 100644 --- a/src/Microsoft.AspNet.Identity/UserManager.cs +++ b/src/Microsoft.AspNet.Identity/UserManager.cs @@ -3,11 +3,7 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.AspNet.DependencyInjection; -#if NET45 using System.Security.Claims; -#else -using System.Security.ClaimsK; -#endif using System.Text; using System.Threading.Tasks;