File tree Expand file tree Collapse file tree 6 files changed +1
-48
lines changed
Http/Routing/src/Template Expand file tree Collapse file tree 6 files changed +1
-48
lines changed Original file line number Diff line number Diff line change 6
6
using System . Diagnostics ;
7
7
using System . Linq ;
8
8
using Microsoft . AspNetCore . Routing . Patterns ;
9
- #if COMPONENTS
10
- using Microsoft . AspNetCore . Components . Routing . Patterns ;
11
- #endif
12
9
13
10
namespace Microsoft . AspNetCore . Routing . Template ;
14
11
15
- #if ! COMPONENTS
16
12
/// <summary>
17
13
/// Represents the template for a route.
18
14
/// </summary>
19
15
[ DebuggerDisplay ( "{DebuggerToString()}" ) ]
20
16
public class RouteTemplate
21
- #else
22
- [ DebuggerDisplay ( "{DebuggerToString()}" ) ]
23
- internal class RouteTemplate
24
- #endif
25
17
{
26
18
private const string SeparatorString = "/" ;
27
19
Original file line number Diff line number Diff line change 3
3
4
4
#nullable enable
5
5
6
- #if ! COMPONENTS
7
6
using Microsoft . AspNetCore . Http ;
8
- #else
9
- using Microsoft . AspNetCore . Components . Routing ;
10
- #endif
11
7
12
8
namespace Microsoft . AspNetCore . Routing . Template ;
13
9
14
- #if ! COMPONENTS
15
10
/// <summary>
16
11
/// Supports matching paths to route templates and extracting parameter values.
17
12
/// </summary>
18
13
public class TemplateMatcher
19
- #else
20
- internal class TemplateMatcher
21
- #endif
22
14
{
23
15
// Perf: This is a cache to avoid looking things up in 'Defaults' each request.
24
16
private readonly bool [ ] _hasDefaultValue ;
Original file line number Diff line number Diff line change 1
- // Licensed to the .NET Foundation under one or more agreements.
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
using Microsoft . AspNetCore . Routing . Patterns ;
5
- #if COMPONENTS
6
- using Microsoft . AspNetCore . Components . Routing . Patterns ;
7
- #endif
8
5
9
6
namespace Microsoft . AspNetCore . Routing . Template ;
10
7
11
- #if ! COMPONENTS
12
8
/// <summary>
13
9
/// Provides methods for parsing route template strings.
14
10
/// </summary>
15
11
public static class TemplateParser
16
- #else
17
- internal static class TemplateParser
18
- #endif
19
12
{
20
13
/// <summary>
21
14
/// Creates a <see cref="RouteTemplate"/> for a given <paramref name="routeTemplate"/> string.
Original file line number Diff line number Diff line change 4
4
using System . Diagnostics ;
5
5
using System . Linq ;
6
6
using Microsoft . AspNetCore . Routing . Patterns ;
7
- #if COMPONENTS
8
- using Microsoft . AspNetCore . Components . Routing . Patterns ;
9
- #endif
10
7
11
8
namespace Microsoft . AspNetCore . Routing . Template ;
12
9
13
- #if ! COMPONENTS
14
10
/// <summary>
15
11
/// Represents a part of a route template segment.
16
12
/// </summary>
17
13
[ DebuggerDisplay ( "{DebuggerToString()}" ) ]
18
14
public class TemplatePart
19
- #else
20
- [ DebuggerDisplay ( "{DebuggerToString()}" ) ]
21
- internal class TemplatePart
22
- #endif
23
15
{
24
16
/// <summary>
25
17
/// Constructs a new <see cref="TemplatePart"/> instance.
Original file line number Diff line number Diff line change 4
4
using System . Diagnostics ;
5
5
using System . Linq ;
6
6
using Microsoft . AspNetCore . Routing . Patterns ;
7
- #if COMPONENTS
8
- using Microsoft . AspNetCore . Components . Routing . Patterns ;
9
- #endif
10
7
11
8
namespace Microsoft . AspNetCore . Routing . Template ;
12
9
13
- #if ! COMPONENTS
14
10
/// <summary>
15
11
/// Represents a segment of a route template.
16
12
/// </summary>
17
13
[ DebuggerDisplay ( "{DebuggerToString()}" ) ]
18
14
public class TemplateSegment
19
- #else
20
- [ DebuggerDisplay ( "{DebuggerToString()}" ) ]
21
- internal class TemplateSegment
22
- #endif
23
15
{
24
16
/// <summary>
25
17
/// Constructs a new <see cref="TemplateSegment"/> instance.
Original file line number Diff line number Diff line change 10
10
using System . Reflection . Metadata ;
11
11
using System . Runtime . CompilerServices ;
12
12
13
- #if ! COMPONENTS
14
13
[ assembly: MetadataUpdateHandler ( typeof ( Microsoft . Extensions . Internal . PropertyHelper . MetadataUpdateHandler ) ) ]
15
- #else
16
- [ assembly: MetadataUpdateHandler ( typeof ( Microsoft . AspNetCore . Components . Reflection . PropertyHelper . MetadataUpdateHandler ) ) ]
17
- #endif
18
14
19
- #if ! COMPONENTS
20
15
namespace Microsoft . Extensions . Internal ;
21
- #else
22
- namespace Microsoft . AspNetCore . Components . Reflection ;
23
- #endif
24
16
25
17
internal sealed class PropertyHelper
26
18
{
You can’t perform that action at this time.
0 commit comments