193 references to Parse
Benchmarks (1)
StartupUsingEndpointRouting.cs (1)
36
routePattern: RoutePatternFactory.
Parse
("/plaintext"),
DeveloperExceptionPageSample (1)
Startup.cs (1)
27
RoutePatternFactory.
Parse
("/"),
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
155
routePattern = RoutePatternFactory.
Parse
(token.ValueText);
Microsoft.AspNetCore.Authorization.Test (10)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (10)
25
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
43
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
62
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
81
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
100
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
133
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
156
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
182
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
208
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
232
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
Microsoft.AspNetCore.Components.Endpoints (8)
Builder\OpaqueRedirection.cs (1)
55
RoutePatternFactory.
Parse
($"/{RedirectionEndpointBaseRelativeUrl}"),
Builder\RazorComponentEndpointFactory.cs (1)
35
RoutePatternFactory.
Parse
(pageDefinition.Route),
Builder\ResourceCollectionUrlEndpoint.cs (6)
251
RoutePatternFactory.
Parse
(fingerprintedGzResourceCollectionUrl),
256
RoutePatternFactory.
Parse
(fingerprintedResourceCollectionUrl),
261
RoutePatternFactory.
Parse
(fingerprintedResourceCollectionUrl),
268
RoutePatternFactory.
Parse
(gzResourceCollectionUrl),
273
RoutePatternFactory.
Parse
(resourceCollectionUrl),
278
RoutePatternFactory.
Parse
(resourceCollectionUrl),
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
HotReloadServiceTests.cs (1)
267
RoutePatternFactory.
Parse
("/server"),
RazorComponentEndpointDataSourceTest.cs (2)
270
RoutePatternFactory.
Parse
("/server"),
283
RoutePatternFactory.
Parse
("/webassembly"),
RazorComponentEndpointInvokerTest.cs (1)
36
RoutePatternFactory.
Parse
("/"),
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\HttpUtilityExtensionsTests.cs (1)
42
RoutePatternFactory.
Parse
(httpRoute),
Logging\IncomingHttpRouteUtilityTests.cs (10)
46
RoutePatternFactory.
Parse
(httpRoute),
84
RoutePatternFactory.
Parse
(httpRoute),
124
RoutePatternFactory.
Parse
(httpRoute),
166
RoutePatternFactory.
Parse
(httpRoute),
208
RoutePatternFactory.
Parse
(httpRoute),
255
RoutePatternFactory.
Parse
(httpRoute),
296
RoutePatternFactory.
Parse
(httpRoute),
344
RoutePatternFactory.
Parse
(httpRoute),
389
RoutePatternFactory.
Parse
(httpRoute),
427
RoutePatternFactory.
Parse
(httpRoute),
Microsoft.AspNetCore.Diagnostics.Tests (3)
ExceptionHandlerMiddlewareTest.cs (3)
301
var originalEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/path"), 0);
361
var originalEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/path"), 0);
364
var newEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/new"), 0);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (1)
234
return (RoutePatternFactory.
Parse
(adapter.ResolvedRouteTemplate), CreateDescriptorInfo(body, responseBody, methodDescriptor, adapter));
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (4)
2842
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/test/pattern"), order: 0);
3078
EndpointBuilder = new RouteEndpointBuilder(null, RoutePatternFactory.
Parse
("/"), order: 0),
3274
var builder = new RouteEndpointBuilder(null, RoutePatternFactory.
Parse
("/"), 0);
3284
var builder = new RouteEndpointBuilder(null, RoutePatternFactory.
Parse
("/"), 0);
Microsoft.AspNetCore.Http.Results.Tests (54)
AcceptedAtRouteOfTResultTests.cs (2)
127
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
154
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
AcceptedAtRouteResultTests.cs (2)
81
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
107
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<AcceptedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
AcceptedOfTResultTests.cs (2)
68
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
95
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
AcceptedResultTests.cs (2)
38
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
64
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Accepted>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
BadRequestOfTResultTests.cs (2)
111
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
138
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<BadRequest<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
BadRequestResultTests.cs (2)
51
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
77
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<BadRequest>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
ConflictOfTResultTests.cs (2)
89
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
116
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Conflict<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
ConflictResultTests.cs (2)
52
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
78
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Conflict>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
CreatedAtRouteOfTResultTests.cs (2)
97
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
124
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<CreatedAtRoute<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
CreatedAtRouteResultTests.cs (2)
79
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
105
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<CreatedAtRoute>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
CreatedOfTResultTests.cs (2)
103
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
130
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Created<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
CreatedResultTests.cs (2)
69
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
95
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Created>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
InternalServerErrorOfTResultTests.cs (2)
111
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
138
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<InternalServerError<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
InternalServerErrorResultTests.cs (2)
51
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
77
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<InternalServerError>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
NoContentResultTests.cs (2)
48
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
74
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NoContent>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
NotFoundOfTResultTests.cs (2)
71
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
98
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NotFound<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
NotFoundResultTests.cs (2)
47
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
73
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<NotFound>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
OkOfTResultTests.cs (2)
88
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
115
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Ok<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
OkResultTests.cs (2)
50
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
76
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Ok>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
ResultsOfTTests.Generated.cs (10)
209
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
223
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
488
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
503
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
844
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
860
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
1285
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
1302
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
1819
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
1837
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5, ProvidesMetadataResult6>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
UnprocessableEntityOfTResultTests.cs (2)
88
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
115
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<UnprocessableEntity<object>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
UnprocessableEntityResultTests.cs (2)
51
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
77
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<UnprocessableEntity>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
ValidationProblemResultTests.cs (2)
99
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
126
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<ValidationProblem>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0)));
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1553
var routePattern = RoutePatternFactory.
Parse
(pattern ?? "/");
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
130
var attributeRoutePattern = RoutePatternFactory.
Parse
(action.AttributeRouteInfo.Template);
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationModels\EndpointMetadataProviderTest.cs (4)
104
Prefix = RoutePatternFactory.
Parse
("/"),
147
Prefix = RoutePatternFactory.
Parse
("/"),
168
Prefix = RoutePatternFactory.
Parse
("/"),
189
Prefix = RoutePatternFactory.
Parse
("/"),
Routing\ControllerActionEndpointDataSourceTest.cs (1)
426
var groupPattern = RoutePatternFactory.
Parse
("/group1");
Routing\RoutePatternWriterTests.cs (1)
25
var routePattern = RoutePatternFactory.
Parse
(template);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
144
var groupPattern = RoutePatternFactory.
Parse
("/group1");
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
51
var routePattern = RoutePatternFactory.
Parse
(apiDescription.RelativePath);
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1009
var routePattern = RoutePatternFactory.
Parse
(pattern ?? "/");
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMetricsTests.cs (2)
196
var routeEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
271
var routeEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
Microsoft.AspNetCore.Routing (9)
Builder\EndpointRouteBuilderExtensions.cs (6)
38
endpoints.MapGroup(RoutePatternFactory.
Parse
(prefix ?? throw new ArgumentNullException(nameof(prefix))));
154
return endpoints.Map(RoutePatternFactory.
Parse
(pattern), requestDelegate, httpMethods);
170
return Map(endpoints, RoutePatternFactory.
Parse
(pattern), requestDelegate);
328
return endpoints.Map(RoutePatternFactory.
Parse
(pattern), handler, httpMethods, isFallback: false);
346
return Map(endpoints, RoutePatternFactory.
Parse
(pattern), handler);
421
return endpoints.Map(RoutePatternFactory.
Parse
(pattern), handler, httpMethods: null, isFallback: true);
Builder\RouteHandlerServices.cs (1)
80
.AddRouteHandler(RoutePatternFactory.
Parse
(pattern),
Patterns\RoutePatternFactory.cs (1)
25
/// Use <see cref="
Parse
(string)"/> to parse a route pattern in
Template\TemplateParser.cs (1)
24
var inner = RoutePatternFactory.
Parse
(routeTemplate);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
51
var withoutDefaults = RoutePatternFactory.
Parse
(endpoint.RoutePattern.RawText);
Microsoft.AspNetCore.Routing.Tests (70)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
81
RoutePatternFactory.
Parse
("{*p}"),
Builder\GroupTest.cs (3)
145
ex = Assert.Throws<ArgumentNullException>(() => builder!.MapGroup(RoutePatternFactory.
Parse
("/")));
246
((RouteEndpointBuilder)builder).RoutePattern = RoutePatternFactory.
Parse
("/bar");
377
RoutePatternFactory.
Parse
("/foo"),
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (4)
355
var endpointBuilder = builder.Map(RoutePatternFactory.
Parse
("/"), requestDelegate);
372
var endpointBuilder = builder.Map(RoutePatternFactory.
Parse
("/"), Handle);
391
var endpointBuilder = builder.Map(RoutePatternFactory.
Parse
("/"), handler.Compile());
516
.Map(RoutePatternFactory.
Parse
("/"), context => Task.CompletedTask)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
24
var endpointModel = new RouteEndpointBuilder((context) => Task.CompletedTask, RoutePatternFactory.
Parse
("/"), 0);
244
RoutePatternFactory.
Parse
("/test"),
CompositeEndpointDataSourceTest.cs (6)
43
var prefix = RoutePatternFactory.
Parse
("/");
71
Prefix = RoutePatternFactory.
Parse
(""),
288
var prefix = RoutePatternFactory.
Parse
("/prefix");
328
var prefix = RoutePatternFactory.
Parse
("/prefix");
380
var prefix = RoutePatternFactory.
Parse
("/prefix");
439
var prefix = RoutePatternFactory.
Parse
("/prefix");
Internal\DfaGraphWriterTest.cs (2)
47
RoutePatternFactory.
Parse
("/"),
70
RoutePatternFactory.
Parse
("/"),
MatcherPolicyTest.cs (1)
64
RoutePatternFactory.
Parse
(template),
Matching\AcceptsMatcherPolicyTest.cs (1)
613
RoutePatternFactory.
Parse
(template),
Matching\CandidateSetTest.cs (1)
372
var builder = new RouteEndpointBuilder(TestConstants.EmptyRequestDelegate, RoutePatternFactory.
Parse
(template), order);
Matching\DataSourceDependentMatcherTest.cs (11)
39
RoutePatternFactory.
Parse
("a/b/c"),
64
RoutePatternFactory.
Parse
("a/b/c"),
104
RoutePatternFactory.
Parse
("/"),
126
RoutePatternFactory.
Parse
("/"),
149
RoutePatternFactory.
Parse
("/foo"),
156
RoutePatternFactory.
Parse
("/bar"),
177
RoutePatternFactory.
Parse
("/foo"),
184
RoutePatternFactory.
Parse
("/bar"),
192
RoutePatternFactory.
Parse
("/foo2"),
215
RoutePatternFactory.
Parse
("/foo"),
228
RoutePatternFactory.
Parse
("/bar"),
Matching\DefaultEndpointSelectorTest.cs (1)
179
RoutePatternFactory.
Parse
(template),
Matching\EndpointComparerTest.cs (1)
246
RoutePatternFactory.
Parse
(template),
Matching\HostMatcherPolicyTest.cs (1)
273
RoutePatternFactory.
Parse
(template),
Matching\HttpMethodMatcherPolicyTest.cs (1)
403
RoutePatternFactory.
Parse
(template),
Matching\RouteMatcherBuilder.cs (1)
51
var withoutDefaults = RoutePatternFactory.
Parse
(endpoint.RoutePattern.RawText);
Patterns\InlineRouteParameterParserTest.cs (1)
269
var routePattern = RoutePatternFactory.
Parse
(@"some/url-{p1:int:test(3)=hello}/{p2=abc}/{p3?}");
Patterns\RoutePatternFactoryTest.cs (20)
20
var original = RoutePatternFactory.
Parse
(template);
49
var original = RoutePatternFactory.
Parse
(template);
73
var original = RoutePatternFactory.
Parse
(template);
98
var original = RoutePatternFactory.
Parse
(template);
121
var original = RoutePatternFactory.
Parse
(template);
144
var original = RoutePatternFactory.
Parse
(template);
189
var original = RoutePatternFactory.
Parse
(template);
225
var original = RoutePatternFactory.
Parse
(template);
256
var original = RoutePatternFactory.
Parse
(template);
302
var original = RoutePatternFactory.
Parse
(template);
323
var original = RoutePatternFactory.
Parse
(template);
359
var original = RoutePatternFactory.
Parse
(template);
387
var original = RoutePatternFactory.
Parse
(template);
732
var left = RoutePatternFactory.
Parse
(leftTemplate);
733
var right = RoutePatternFactory.
Parse
(rightTemplate);
754
var left = RoutePatternFactory.
Parse
("/{id}");
755
var right = RoutePatternFactory.
Parse
("/{ID}");
767
var left = RoutePatternFactory.
Parse
("/a/{x=foo}");
814
var left = RoutePatternFactory.
Parse
("/a/{x=foo}");
839
var left = RoutePatternFactory.
Parse
("/a/{x:string}");
RouteEndpointBuilderTest.cs (7)
16
var builder = new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.
Parse
("/"), order: 0);
34
var builder = new RouteEndpointBuilder(requestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder)
57
var builder = new RouteEndpointBuilder(requestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder)
85
var builder = new RouteEndpointBuilder(RequestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder)
105
var builder = new RouteEndpointBuilder(RequestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder)
126
var builder = new RouteEndpointBuilder(RequestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder)
153
var builder = new RouteEndpointBuilder(requestDelegate, RoutePatternFactory.
Parse
("/"), defaultOrder);
RoutingMetricsTests.cs (2)
27
var routeEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/{hi}"), order: 0);
57
var routeEndpointBuilder = new RouteEndpointBuilder(c => Task.CompletedTask, RoutePatternFactory.
Parse
("/{hi}"), order: 0);
Template\RoutePatternPrecedenceTests.cs (2)
22
var parsed = RoutePatternFactory.
Parse
(template);
29
var parameterPrecedence = RoutePatternFactory.
Parse
(
Tree\LinkGenerationDecisionTreeTest.cs (1)
749
match.Entry.RouteTemplate = new RouteTemplate(RoutePatternFactory.
Parse
(routeTemplate));
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointFactory.cs (1)
23
RoutePatternFactory.
Parse
(resource.Route),
RoutingSandbox (1)
Framework\FrameworkConfigurationBuilder.cs (1)
19
AddPattern(RoutePatternFactory.
Parse
(pattern));