From 89a962716fa37a84127864c7913a9f1ee9eda588 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Sat, 22 Sep 2018 15:35:55 -0700 Subject: [PATCH] React to Routing LinkGenerator changes --- build/dependencies.props | 4 ++-- .../Routing/EndpointRoutingUrlHelper.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 22824154bd..97da37f7e6 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -48,8 +48,8 @@ 2.2.0-preview3-35252 2.2.0-preview3-35252 2.2.0-preview3-35252 - 2.2.0-a-preview3-outbound-parameter-tranformer-16996 - 2.2.0-a-preview3-outbound-parameter-tranformer-16996 + 2.2.0-a-preview3-ambientvalues-17006 + 2.2.0-a-preview3-ambientvalues-17006 2.2.0-preview3-35252 2.2.0-preview3-35252 2.2.0-preview3-35252 diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Routing/EndpointRoutingUrlHelper.cs b/src/Microsoft.AspNetCore.Mvc.Core/Routing/EndpointRoutingUrlHelper.cs index adc94a7d8e..528d6e2efe 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Routing/EndpointRoutingUrlHelper.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Routing/EndpointRoutingUrlHelper.cs @@ -85,7 +85,7 @@ namespace Microsoft.AspNetCore.Mvc.Routing ActionContext.HttpContext, routeName: null, values, - new FragmentString(urlActionContext.Fragment == null ? null : "#" + urlActionContext.Fragment)); + fragment: new FragmentString(urlActionContext.Fragment == null ? null : "#" + urlActionContext.Fragment)); return GenerateUrl(urlActionContext.Protocol, urlActionContext.Host, path); } @@ -101,7 +101,7 @@ namespace Microsoft.AspNetCore.Mvc.Routing ActionContext.HttpContext, routeContext.RouteName, routeContext.Values, - new FragmentString(routeContext.Fragment == null ? null : "#" + routeContext.Fragment)); + fragment: new FragmentString(routeContext.Fragment == null ? null : "#" + routeContext.Fragment)); return GenerateUrl(routeContext.Protocol, routeContext.Host, path); } }