Fix obsolete constraint resolver usage (#8361)
This commit is contained in:
parent
ffdbea9dc1
commit
5cdc172b17
|
|
@ -1045,7 +1045,7 @@ namespace Microsoft.AspNetCore.Mvc
|
||||||
serviceCollection.AddRouting();
|
serviceCollection.AddRouting();
|
||||||
|
|
||||||
serviceCollection.AddSingleton<IInlineConstraintResolver>(
|
serviceCollection.AddSingleton<IInlineConstraintResolver>(
|
||||||
provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>()));
|
provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>(), provider));
|
||||||
|
|
||||||
if (localizerFactory != null)
|
if (localizerFactory != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue