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.AddOptions(configuration);
|
||||||
services.AddDataProtection(configuration);
|
services.AddDataProtection(configuration);
|
||||||
services.AddRouting(configuration);
|
services.AddRouting(configuration);
|
||||||
services.AddScopedInstance(configuration);
|
|
||||||
services.AddAuthorization(configuration);
|
services.AddAuthorization(configuration);
|
||||||
services.Configure<RouteOptions>(routeOptions =>
|
services.Configure<RouteOptions>(routeOptions =>
|
||||||
routeOptions.ConstraintMap
|
routeOptions.ConstraintMap
|
||||||
.Add("exists",
|
.Add("exists",
|
||||||
typeof(KnownRouteValueConstraint)));
|
typeof(KnownRouteValueConstraint)));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ namespace Microsoft.AspNet.Mvc
|
||||||
typeof(INestedProviderManagerAsync<>),
|
typeof(INestedProviderManagerAsync<>),
|
||||||
typeof(NestedProviderManagerAsync<>));
|
typeof(NestedProviderManagerAsync<>));
|
||||||
yield return describe.Transient<MvcMarkerService, MvcMarkerService>();
|
yield return describe.Transient<MvcMarkerService, MvcMarkerService>();
|
||||||
|
yield return describe.Scoped(typeof(IScopedInstance<>), typeof(ScopedInstance<>));
|
||||||
|
|
||||||
// Core action discovery, filters and action execution.
|
// Core action discovery, filters and action execution.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue