From 8e57fa535027fa03e86b54ed5fc3ac0c5ee715c9 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 2 Sep 2015 15:07:16 -0700 Subject: [PATCH] React to options --- .../MvcViewFeaturesMvcCoreBuilderExtensions.cs | 2 +- .../TempData/TempDataMvcOptionsSetup.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs b/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs index 9e9df975e6..b6981a4b6c 100644 --- a/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs +++ b/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs @@ -83,7 +83,7 @@ namespace Microsoft.Framework.DependencyInjection services.TryAddSingleton(); services.TryAdd(ServiceDescriptor.Singleton(serviceProvider => { - var options = serviceProvider.GetRequiredService>().Options; + var options = serviceProvider.GetRequiredService>().Value; return new JsonOutputFormatter(options.SerializerSettings); })); diff --git a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs index ddcbc90dc1..c5dd06394f 100644 --- a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs +++ b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs @@ -13,7 +13,6 @@ namespace Microsoft.AspNet.Mvc public TempDataMvcOptionsSetup() : base(ConfigureMvc) { - Order = DefaultOrder.DefaultFrameworkSortOrder; } public static void ConfigureMvc(MvcOptions options)