React to removal of AddScopedInstance
This commit is contained in:
parent
65839b678c
commit
4eb9c777ff
|
|
@ -41,13 +41,11 @@ namespace Microsoft.Framework.DependencyInjection
|
|||
services.AddOptions(configuration);
|
||||
services.AddDataProtection(configuration);
|
||||
services.AddRouting(configuration);
|
||||
services.AddScopedInstance(configuration);
|
||||
services.AddAuthorization(configuration);
|
||||
services.Configure<RouteOptions>(routeOptions =>
|
||||
routeOptions.ConstraintMap
|
||||
.Add("exists",
|
||||
typeof(KnownRouteValueConstraint)));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
typeof(INestedProviderManagerAsync<>),
|
||||
typeof(NestedProviderManagerAsync<>));
|
||||
yield return describe.Transient<MvcMarkerService, MvcMarkerService>();
|
||||
yield return describe.Scoped(typeof(IScopedInstance<>), typeof(ScopedInstance<>));
|
||||
|
||||
// Core action discovery, filters and action execution.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue