Renaming Microsoft.Framework.* -> Microsoft.Extensions.*

This commit is contained in:
Pranav K 2015-10-03 15:44:55 -07:00
parent acfee9e7e0
commit 5da757642d
45 changed files with 74 additions and 74 deletions

View File

@ -1,8 +1,8 @@
using System;
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace IdentitySample.Models
{

View File

@ -1,10 +1,10 @@
using System;
using System;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
namespace IdentitySample.Models
{

View File

@ -2,9 +2,9 @@ using IdentitySample.Models;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Dnx.Runtime;
#if DNX451
using NLog.Config;

View File

@ -18,10 +18,10 @@
"Microsoft.AspNet.Authorization": "1.0.0-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-*",
"EntityFramework.SqlServer": "7.0.0-*",
"Microsoft.Framework.Configuration.EnvironmentVariables": "1.0.0-*",
"Microsoft.Framework.Configuration.Json": "1.0.0-*",
"Microsoft.Framework.OptionsModel": "1.0.0-*",
"Microsoft.Framework.Logging.Console": "1.0.0-*"
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-*",
"Microsoft.Extensions.Configuration.Json": "1.0.0-*",
"Microsoft.Extensions.OptionsModel": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*"
},
"commands": {
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:41532",
@ -31,7 +31,7 @@
"frameworks": {
"dnx451": {
"dependencies": {
"Microsoft.Framework.Logging.NLog": "1.0.0-*"
"Microsoft.Extensions.Logging.NLog": "1.0.0-*"
}
},
"dnxcore50": {

View File

@ -4,9 +4,9 @@
using System;
using Microsoft.AspNet.Identity;
using Microsoft.Data.Entity;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.Framework.DependencyInjection
namespace Microsoft.Extensions.DependencyInjection
{
public static class IdentityEntityFrameworkBuilderExtensions
{

View File

@ -3,8 +3,8 @@
using System;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Identity
{

View File

@ -4,8 +4,8 @@
using System;
using Microsoft.AspNet.Identity;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Builder
{

View File

@ -7,7 +7,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.DataProtection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -3,7 +3,7 @@
using System;
using System.Reflection;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Identity
{

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNet.Identity
{

View File

@ -3,9 +3,9 @@
using System;
using Microsoft.AspNet.Identity;
using Microsoft.Framework.DependencyInjection.Extensions;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.Framework.DependencyInjection
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Contains extension methods to <see cref="IServiceCollection"/> for configuring identity services.

View File

@ -5,7 +5,7 @@ using System;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using Microsoft.AspNet.Cryptography.KeyDerivation;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -10,7 +10,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNet.Identity
{

View File

@ -6,8 +6,8 @@ using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Cookies;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -10,8 +10,8 @@ using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication;
using Microsoft.Framework.Logging;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNet.Identity
{

View File

@ -6,7 +6,7 @@ using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -10,9 +10,9 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity
{

View File

@ -4,7 +4,7 @@
using System;
using System.Linq.Expressions;
using Microsoft.AspNet.Identity.Test;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
{

View File

@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity.Test;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Internal;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
{

View File

@ -7,7 +7,7 @@
"Microsoft.AspNet.DataProtection": "1.0.0-*",
"Microsoft.AspNet.Testing": "1.0.0-*",
"EntityFramework.InMemory": "7.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Microsoft.Extensions.OptionsModel" : "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"compile": "..\\Shared\\*.cs",

View File

@ -4,7 +4,7 @@
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Internal;
using Microsoft.Data.Entity;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsoft.AspNet.Identity.EntityFramework.Test

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Builder.Internal;
using Microsoft.AspNet.Identity.Test;
using Microsoft.Data.Entity;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Dnx.Runtime.Infrastructure;
using Xunit;
using Microsoft.AspNet.Testing.xunit;

View File

@ -11,7 +11,7 @@ using Microsoft.AspNet.Identity.Test;
using Microsoft.AspNet.Testing.xunit;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Storage;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsoft.AspNet.Identity.EntityFramework.Test

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsoft.AspNet.Identity.EntityFramework.Test

View File

@ -7,7 +7,7 @@ using System.Linq.Expressions;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity.Test;
using Microsoft.AspNet.Testing.xunit;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace Microsoft.AspNet.Identity.EntityFramework.Test

View File

@ -9,7 +9,7 @@
"Microsoft.AspNet.DataProtection": "1.0.0-*",
"Microsoft.AspNet.TestHost": "1.0.0-*",
"Microsoft.AspNet.Testing": "1.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Microsoft.Extensions.OptionsModel" : "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"compile": "..\\Shared\\*.cs",

View File

@ -16,7 +16,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication;
using Microsoft.AspNet.TestHost;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Xunit;
using Microsoft.AspNet.Identity.Test;

View File

@ -10,7 +10,7 @@ using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Identity.Test;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Dnx.Runtime.Infrastructure;
using Moq;
using Xunit;

View File

@ -4,7 +4,7 @@
using System;
using System.Linq.Expressions;
using Microsoft.AspNet.Identity.Test;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Identity.InMemory.Test
{

View File

@ -7,9 +7,9 @@
"Microsoft.AspNet.Identity" : "3.0.0-*",
"Microsoft.AspNet.TestHost": "1.0.0-*",
"Microsoft.AspNet.Testing" : "1.0.0-*",
"Microsoft.Framework.Configuration": "1.0.0-*",
"Microsoft.Framework.DependencyInjection" : "1.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
"Microsoft.Extensions.DependencyInjection" : "1.0.0-*",
"Microsoft.Extensions.OptionsModel" : "1.0.0-*",
"Moq": "4.2.1312.1622",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},

View File

@ -6,8 +6,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
using Xunit;
namespace Microsoft.AspNet.Identity.Test

View File

@ -4,10 +4,10 @@
using System;
using System.Collections.Generic;
using System.Security.Claims;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.Configuration.Memory;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Memory;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
using Xunit;
namespace Microsoft.AspNet.Identity.Test

View File

@ -3,7 +3,7 @@
using System;
using System.Security.Cryptography;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
using Xunit;
namespace Microsoft.AspNet.Identity.Test

View File

@ -9,8 +9,8 @@ using Microsoft.AspNet.Authentication.Cookies;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.OptionsModel;
using Moq;
using Xunit;
@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Identity.Test
var ticket = new AuthenticationTicket(id, new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow }, scheme);
var context = new CookieValidatePrincipalContext(httpContext.Object, ticket, new CookieAuthenticationOptions());
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => SecurityStampValidator.ValidatePrincipalAsync(context));
Assert.True(ex.Message.Contains("No service for type 'Microsoft.Framework.OptionsModel.IOptions"));
Assert.True(ex.Message.Contains("No service for type 'Microsoft.Extensions.OptionsModel.IOptions"));
}
[Theory]

View File

@ -12,7 +12,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication;
using Microsoft.AspNet.Http.Internal;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
using Moq;
using Xunit;

View File

@ -5,7 +5,7 @@ using System;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
using Moq;
using Xunit;

View File

@ -9,7 +9,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Internal;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Xunit;

View File

@ -4,9 +4,9 @@
"Microsoft.AspNet.Http" : "1.0.0-*",
"Microsoft.AspNet.Identity" : "3.0.0-*",
"Microsoft.AspNet.Testing" : "1.0.0-*",
"Microsoft.Framework.Configuration" : "1.0.0-*",
"Microsoft.Framework.DependencyInjection" : "1.0.0-*",
"Microsoft.Framework.OptionsModel" : "1.0.0-*",
"Microsoft.Extensions.Configuration" : "1.0.0-*",
"Microsoft.Extensions.DependencyInjection" : "1.0.0-*",
"Microsoft.Extensions.OptionsModel" : "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},
"compile": "..\\Shared\\*.cs",

View File

@ -3,7 +3,7 @@
using System.Diagnostics;
using System.Linq;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
using Xunit;
namespace Microsoft.AspNet.Identity.Test

View File

@ -5,9 +5,9 @@ using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Text;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
using Moq;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity.Test
{

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Framework.OptionsModel;
using Microsoft.Extensions.OptionsModel;
namespace Microsoft.AspNet.Identity.Test
{

View File

@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNet.Identity.Test
{

View File

@ -7,8 +7,8 @@ using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Testing;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Xunit;
using System.Linq.Expressions;
using Microsoft.AspNet.Http;