Fix obsolete constraint resolver usage (#8361)

This commit is contained in:
James Newton-King 2018-08-30 13:28:46 +12:00 committed by GitHub
parent ffdbea9dc1
commit 5cdc172b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ namespace Microsoft.AspNetCore.Mvc
serviceCollection.AddRouting();
serviceCollection.AddSingleton<IInlineConstraintResolver>(
provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>()));
provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>(), provider));
if (localizerFactory != null)
{