React to Routing repo's LinkGenerator api changes
This commit is contained in:
parent
52c1e942c6
commit
3df34dbbfe
|
|
@ -94,10 +94,13 @@ namespace Microsoft.AspNetCore.Mvc.Routing
|
||||||
});
|
});
|
||||||
|
|
||||||
var successfullyGeneratedLink = _linkGenerator.TryGetLink(
|
var successfullyGeneratedLink = _linkGenerator.TryGetLink(
|
||||||
ActionContext.HttpContext,
|
new LinkGeneratorContext
|
||||||
endpoints,
|
{
|
||||||
valuesDictionary,
|
HttpContext = ActionContext.HttpContext,
|
||||||
AmbientValues,
|
Endpoints = endpoints,
|
||||||
|
ExplicitValues = valuesDictionary,
|
||||||
|
AmbientValues = AmbientValues
|
||||||
|
},
|
||||||
out var link);
|
out var link);
|
||||||
|
|
||||||
if (!successfullyGeneratedLink)
|
if (!successfullyGeneratedLink)
|
||||||
|
|
@ -129,10 +132,13 @@ namespace Microsoft.AspNetCore.Mvc.Routing
|
||||||
});
|
});
|
||||||
|
|
||||||
var successfullyGeneratedLink = _linkGenerator.TryGetLink(
|
var successfullyGeneratedLink = _linkGenerator.TryGetLink(
|
||||||
ActionContext.HttpContext,
|
new LinkGeneratorContext
|
||||||
endpoints,
|
{
|
||||||
valuesDictionary,
|
HttpContext = ActionContext.HttpContext,
|
||||||
AmbientValues,
|
Endpoints = endpoints,
|
||||||
|
ExplicitValues = valuesDictionary,
|
||||||
|
AmbientValues = AmbientValues
|
||||||
|
},
|
||||||
out var link);
|
out var link);
|
||||||
|
|
||||||
if (!successfullyGeneratedLink)
|
if (!successfullyGeneratedLink)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue