6 references to SetOptional
Microsoft.AspNetCore.Routing (3)
RouteBase.cs (1)
223constraintBuilder.SetOptional(parameter.Name!);
Tree\TreeRouteBuilder.cs (2)
122constraintBuilder.SetOptional(parameter.Name); 207constraintBuilder.SetOptional(parameter.Name);
Microsoft.AspNetCore.Routing.Tests (3)
RouteConstraintBuilderTest.cs (3)
106builder.SetOptional("id"); 120builder.SetOptional("id"); 132builder.SetOptional("name");