diff --git a/global.json b/global.json index b264c22..32cd723 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { - "projects": ["src"], + "projects": ["src", "samples"], "sdk": { "version": "1.0.0-preview2-003121" } diff --git a/samples/IdentitySample.Mvc/Controllers/AccountController.cs b/samples/IdentitySample.Mvc/Controllers/AccountController.cs index 4c40e61..03a3989 100644 --- a/samples/IdentitySample.Mvc/Controllers/AccountController.cs +++ b/samples/IdentitySample.Mvc/Controllers/AccountController.cs @@ -8,7 +8,7 @@ using Microsoft.Extensions.Logging; using IdentitySample.Models.AccountViewModels; using IdentitySample.Services; -using Dnx.Identity.MongoDB; +using AspNetCore.Identity.MongoDB; namespace IdentitySample.Controllers { diff --git a/samples/IdentitySample.Mvc/Controllers/ManageController.cs b/samples/IdentitySample.Mvc/Controllers/ManageController.cs index 2659e2b..8610041 100644 --- a/samples/IdentitySample.Mvc/Controllers/ManageController.cs +++ b/samples/IdentitySample.Mvc/Controllers/ManageController.cs @@ -6,7 +6,7 @@ using Microsoft.Extensions.Logging; using IdentitySample.Models.ManageViewModels; using IdentitySample.Services; -using Dnx.Identity.MongoDB; +using AspNetCore.Identity.MongoDB; namespace IdentitySamples.Controllers { diff --git a/samples/IdentitySample.Mvc/Startup.cs b/samples/IdentitySample.Mvc/Startup.cs index 8720c2d..cb54c7b 100644 --- a/samples/IdentitySample.Mvc/Startup.cs +++ b/samples/IdentitySample.Mvc/Startup.cs @@ -11,7 +11,7 @@ using Microsoft.Extensions.Options; using System.Security.Claims; using MongoDB.Driver; -using Dnx.Identity.MongoDB; +using AspNetCore.Identity.MongoDB; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.DataProtection; diff --git a/samples/IdentitySample.Mvc/Views/Account/Login.cshtml b/samples/IdentitySample.Mvc/Views/Account/Login.cshtml index 6c438de..4377a7f 100644 --- a/samples/IdentitySample.Mvc/Views/Account/Login.cshtml +++ b/samples/IdentitySample.Mvc/Views/Account/Login.cshtml @@ -1,7 +1,7 @@ @using System.Collections.Generic @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Http.Authentication -@using Dnx.Identity.MongoDB +@using AspNetCore.Identity.MongoDB @model LoginViewModel @inject SignInManager SignInManager diff --git a/samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml b/samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml index fea587a..6b69521 100644 --- a/samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml +++ b/samples/IdentitySample.Mvc/Views/Shared/_LoginPartial.cshtml @@ -1,5 +1,5 @@ @using Microsoft.AspNetCore.Identity -@using Dnx.Identity.MongoDB +@using AspNetCore.Identity.MongoDB @inject SignInManager SignInManager @inject UserManager UserManager diff --git a/src/AspNetCore.Identity.MongoDB/Models/ConfirmationOccurrence.cs b/src/AspNetCore.Identity.MongoDB/Models/ConfirmationOccurrence.cs index 7285e3a..23e8ded 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/ConfirmationOccurrence.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/ConfirmationOccurrence.cs @@ -1,6 +1,6 @@ using System; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class ConfirmationOccurrence : Occurrence { diff --git a/src/AspNetCore.Identity.MongoDB/Models/FutureOccurrence.cs b/src/AspNetCore.Identity.MongoDB/Models/FutureOccurrence.cs index 104413a..fc7ad43 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/FutureOccurrence.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/FutureOccurrence.cs @@ -1,6 +1,6 @@ using System; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class FutureOccurrence : Occurrence { diff --git a/src/AspNetCore.Identity.MongoDB/Models/MongoUserClaim.cs b/src/AspNetCore.Identity.MongoDB/Models/MongoUserClaim.cs index ea40327..0c323ac 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/MongoUserClaim.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/MongoUserClaim.cs @@ -1,7 +1,7 @@ using System; using System.Security.Claims; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class MongoUserClaim : IEquatable, IEquatable { diff --git a/src/AspNetCore.Identity.MongoDB/Models/MongoUserContactRecord.cs b/src/AspNetCore.Identity.MongoDB/Models/MongoUserContactRecord.cs index ea58437..64b58c8 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/MongoUserContactRecord.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/MongoUserContactRecord.cs @@ -1,6 +1,6 @@ using System; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public abstract class MongoUserContactRecord : IEquatable { diff --git a/src/AspNetCore.Identity.MongoDB/Models/MongoUserEmail.cs b/src/AspNetCore.Identity.MongoDB/Models/MongoUserEmail.cs index 3b3f362..4f001a7 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/MongoUserEmail.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/MongoUserEmail.cs @@ -1,6 +1,6 @@ using System; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class MongoUserEmail : MongoUserContactRecord { diff --git a/src/AspNetCore.Identity.MongoDB/Models/MongoUserLogin.cs b/src/AspNetCore.Identity.MongoDB/Models/MongoUserLogin.cs index 3fba992..ce94c38 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/MongoUserLogin.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/MongoUserLogin.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Identity; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class MongoUserLogin : IEquatable, IEquatable { diff --git a/src/AspNetCore.Identity.MongoDB/Models/MongoUserPhoneNumber.cs b/src/AspNetCore.Identity.MongoDB/Models/MongoUserPhoneNumber.cs index 3ea004c..3fee763 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/MongoUserPhoneNumber.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/MongoUserPhoneNumber.cs @@ -1,4 +1,4 @@ -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class MongoUserPhoneNumber : MongoUserContactRecord { diff --git a/src/AspNetCore.Identity.MongoDB/Models/Occurrence.cs b/src/AspNetCore.Identity.MongoDB/Models/Occurrence.cs index 9b1ca3f..edfd202 100644 --- a/src/AspNetCore.Identity.MongoDB/Models/Occurrence.cs +++ b/src/AspNetCore.Identity.MongoDB/Models/Occurrence.cs @@ -1,6 +1,6 @@ using System; -namespace Dnx.Identity.MongoDB.Models +namespace AspNetCore.Identity.MongoDB.Models { public class Occurrence { diff --git a/src/AspNetCore.Identity.MongoDB/MongoConfig.cs b/src/AspNetCore.Identity.MongoDB/MongoConfig.cs index e8c4eb5..405bf46 100644 --- a/src/AspNetCore.Identity.MongoDB/MongoConfig.cs +++ b/src/AspNetCore.Identity.MongoDB/MongoConfig.cs @@ -1,11 +1,11 @@ -using Dnx.Identity.MongoDB.Models; +using AspNetCore.Identity.MongoDB.Models; using Microsoft.AspNetCore.Identity; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Conventions; using System; using System.Threading; -namespace Dnx.Identity.MongoDB +namespace AspNetCore.Identity.MongoDB { internal static class MongoConfig { @@ -71,7 +71,7 @@ private static void RegisterConventions() new CamelCaseElementNameConvention(), }; - ConventionRegistry.Register("Dnx.Identity.MongoDB", pack, IsConventionApplicable); + ConventionRegistry.Register("AspNetCore.Identity.MongoDB", pack, IsConventionApplicable); } private static bool IsConventionApplicable(Type type) diff --git a/src/AspNetCore.Identity.MongoDB/MongoIdentityUser.cs b/src/AspNetCore.Identity.MongoDB/MongoIdentityUser.cs index 8ec84ba..55e153b 100644 --- a/src/AspNetCore.Identity.MongoDB/MongoIdentityUser.cs +++ b/src/AspNetCore.Identity.MongoDB/MongoIdentityUser.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; -using Dnx.Identity.MongoDB.Models; -using System.Globalization; +using AspNetCore.Identity.MongoDB.Models; using System.Security.Claims; -namespace Dnx.Identity.MongoDB +namespace AspNetCore.Identity.MongoDB { public class MongoIdentityUser { diff --git a/src/AspNetCore.Identity.MongoDB/MongoUserStore.cs b/src/AspNetCore.Identity.MongoDB/MongoUserStore.cs index 244e5e8..c9cf294 100644 --- a/src/AspNetCore.Identity.MongoDB/MongoUserStore.cs +++ b/src/AspNetCore.Identity.MongoDB/MongoUserStore.cs @@ -3,14 +3,14 @@ using System.Threading.Tasks; using System.Threading; using MongoDB.Driver; -using Dnx.Identity.MongoDB.Models; +using AspNetCore.Identity.MongoDB.Models; using System.Linq; using System.Security.Claims; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using MongoDB.Bson.Serialization.Conventions; -namespace Dnx.Identity.MongoDB +namespace AspNetCore.Identity.MongoDB { public class MongoUserStore : IUserStore,