Remove redundant AddOptions which is now a default hosting service
This commit is contained in:
parent
b942e96216
commit
c742390a3c
|
|
@ -24,7 +24,6 @@ namespace Microsoft.Extensions.DependencyInjection
|
||||||
this IServiceCollection services,
|
this IServiceCollection services,
|
||||||
Action<RouteOptions> configureOptions)
|
Action<RouteOptions> configureOptions)
|
||||||
{
|
{
|
||||||
services.AddOptions();
|
|
||||||
services.TryAddTransient<IInlineConstraintResolver, DefaultInlineConstraintResolver>();
|
services.TryAddTransient<IInlineConstraintResolver, DefaultInlineConstraintResolver>();
|
||||||
services.TryAddSingleton(UrlEncoder.Default);
|
services.TryAddSingleton(UrlEncoder.Default);
|
||||||
services.TryAddSingleton<ObjectPoolProvider>(new DefaultObjectPoolProvider());
|
services.TryAddSingleton<ObjectPoolProvider>(new DefaultObjectPoolProvider());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue