React to options change
This commit is contained in:
parent
fc5f702162
commit
3e4a412b21
|
|
@ -296,7 +296,7 @@ namespace Microsoft.AspNet.Routing.Tests
|
|||
private static IInlineConstraintResolver GetConstraintResolver()
|
||||
{
|
||||
var services = new ServiceCollection { OptionsServices.GetDefaultServices() };
|
||||
services.SetupOptions<RouteOptions>(options =>
|
||||
services.ConfigureOptions<RouteOptions>(options =>
|
||||
options
|
||||
.ConstraintMap
|
||||
.Add("test", typeof(TestRouteConstraint)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue