React to Routing service collection extension changes
This commit is contained in:
parent
df5eb0a15c
commit
779edb6fe1
|
|
@ -193,11 +193,13 @@ namespace Microsoft.AspNetCore.Mvc.Internal
|
|||
.SetupGet(o => o.Value)
|
||||
.Returns(new RouteOptions());
|
||||
|
||||
return new ServiceCollection()
|
||||
var services = new ServiceCollection()
|
||||
.AddSingleton<IInlineConstraintResolver>(new DefaultInlineConstraintResolver(routeOptions.Object))
|
||||
.AddSingleton<UrlEncoder>(new UrlTestEncoder())
|
||||
.AddRouting()
|
||||
.AddSingleton(actionDescriptorProvider.Object)
|
||||
.AddSingleton<UrlEncoder>(new UrlTestEncoder());
|
||||
|
||||
services.AddRouting();
|
||||
|
||||
return services.AddSingleton(actionDescriptorProvider.Object)
|
||||
.AddSingleton<ILoggerFactory>(NullLoggerFactory.Instance)
|
||||
.BuildServiceProvider();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue