React to options change

This commit is contained in:
Hao Kung 2014-10-08 12:56:01 -07:00
parent fc5f702162
commit 3e4a412b21
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ namespace Microsoft.AspNet.Routing.Tests
private static IInlineConstraintResolver GetConstraintResolver() private static IInlineConstraintResolver GetConstraintResolver()
{ {
var services = new ServiceCollection { OptionsServices.GetDefaultServices() }; var services = new ServiceCollection { OptionsServices.GetDefaultServices() };
services.SetupOptions<RouteOptions>(options => services.ConfigureOptions<RouteOptions>(options =>
options options
.ConstraintMap .ConstraintMap
.Add("test", typeof(TestRouteConstraint))); .Add("test", typeof(TestRouteConstraint)));