/
IAttributeRoute.cs
81 lines (68 loc) · 2.68 KB
/
IAttributeRoute.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System.Collections.Generic;
namespace AttributeRouting.Framework
{
/// <summary>
/// Generic interface for AttributeRoutes (logging, etc.) that doesn't require a Route type
/// </summary>
public interface IAttributeRoute
{
/// <summary>
/// The name of this route, for supporting named routes.
/// </summary>
string RouteName { get; set; }
/// <summary>
/// The culture name associated with this route.
/// </summary>
string CultureName { get; set; }
/// <summary>
/// List of all the subdomains mapped via AttributeRouting.
/// </summary>
List<string> MappedSubdomains { get; set; }
/// <summary>
/// The subdomain this route is to be applied against.
/// </summary>
string Subdomain { get; set; }
/// <summary>
/// Route URL
/// </summary>
string Url { get; set; }
/// <summary>
/// If true, will override <see cref="AttributeRoutingConfigurationBase.UseLowercaseRoutes"/>
/// set via global configuration
/// and the generated route will have a lowercase URL.
/// </summary>
bool UseLowercaseRoute { get; set; }
/// <summary>
/// If true, will override <see cref="AttributeRoutingConfigurationBase.PreserveCaseForUrlParameters"/>
/// set via global configuration
/// and the generated route will not lowercase URL parameter values.
/// </summary>
bool PreserveCaseForUrlParameters { get; set; }
/// <summary>
/// If true, will override <see cref="AttributeRoutingConfigurationBase.AppendTrailingSlash"/>
/// set via global configuration
/// and the generated route will have a trailing slash on the path of outbound URLs.
/// </summary>
bool AppendTrailingSlash { get; set; }
/// <summary>
/// DataTokens dictionary
/// </summary>
IDictionary<string, object> DataTokens { get; set; }
/// <summary>
/// Constraints dictionary
/// </summary>
IDictionary<string, object> Constraints { get; set; }
/// <summary>
/// Defaults dictionary
/// </summary>
IDictionary<string, object> Defaults { get; set; }
/// <summary>
/// The translations available for this route.
/// </summary>
IEnumerable<IAttributeRoute> Translations { get; set; }
/// <summary>
/// Default route container back-reference
/// </summary>
IAttributeRoute DefaultRouteContainer { get; set; }
}
}