@@ -24,29 +24,26 @@ public class GlobalSettings
24
24
internal const string StaticUmbracoCssPath = "~/css" ;
25
25
internal const string StaticUmbracoScriptsPath = "~/scripts" ;
26
26
internal const string StaticUmbracoMediaPath = "~/media" ;
27
- internal const string StaticUmbracoMediaUrl = "~/media" ;
28
27
internal const bool StaticInstallMissingDatabase = false ;
29
28
internal const bool StaticDisableElectionForSingleServer = false ;
30
29
internal const string StaticNoNodesViewPath = "~/umbraco/UmbracoWebsite/NoNodes.cshtml" ;
31
30
internal const string StaticSqlWriteLockTimeOut = "00:00:05" ;
32
31
internal const bool StaticSanitizeTinyMce = false ;
33
32
34
33
/// <summary>
35
- /// Gets or sets a value for the reserved URLs.
36
- /// It must end with a comma
34
+ /// Gets or sets a value for the reserved URLs (must end with a comma).
37
35
/// </summary>
38
36
[ DefaultValue ( StaticReservedUrls ) ]
39
37
public string ReservedUrls { get ; set ; } = StaticReservedUrls ;
40
38
41
39
/// <summary>
42
- /// Gets or sets a value for the reserved paths.
43
- /// It must end with a comma
40
+ /// Gets or sets a value for the reserved paths (must end with a comma).
44
41
/// </summary>
45
42
[ DefaultValue ( StaticReservedPaths ) ]
46
43
public string ReservedPaths { get ; set ; } = StaticReservedPaths ;
47
44
48
45
/// <summary>
49
- /// Gets or sets a value for the timeout
46
+ /// Gets or sets a value for the back-office login timeout.
50
47
/// </summary>
51
48
[ DefaultValue ( StaticTimeOut ) ]
52
49
public TimeSpan TimeOut { get ; set ; } = TimeSpan . Parse ( StaticTimeOut ) ;
@@ -110,12 +107,10 @@ public class GlobalSettings
110
107
[ DefaultValue ( StaticUmbracoMediaPath ) ]
111
108
public string UmbracoMediaPath { get ; set ; } = StaticUmbracoMediaPath ;
112
109
113
-
114
110
/// <summary>
115
- /// Gets or sets a value for the Umbraco media url. Starts with "~/" .
111
+ /// Gets or sets a value for the Umbraco media URL (falls back to <see cref="UmbracoMediaPath" /> when empty) .
116
112
/// </summary>
117
- [ DefaultValue ( StaticUmbracoMediaUrl ) ]
118
- public string UmbracoMediaUrl { get ; set ; } = StaticUmbracoMediaUrl ;
113
+ public string UmbracoMediaUrl { get ; set ; }
119
114
120
115
/// <summary>
121
116
/// Gets or sets a value indicating whether to install the database when it is missing.
@@ -139,6 +134,9 @@ public class GlobalSettings
139
134
/// </summary>
140
135
public string MainDomLock { get ; set ; } = string . Empty ;
141
136
137
+ /// <summary>
138
+ /// Gets or sets the telemetry ID.
139
+ /// </summary>
142
140
public string Id { get ; set ; } = string . Empty ;
143
141
144
142
/// <summary>
@@ -172,18 +170,18 @@ public class GlobalSettings
172
170
/// </summary>
173
171
public bool IsPickupDirectoryLocationConfigured => ! string . IsNullOrWhiteSpace ( Smtp ? . PickupDirectoryLocation ) ;
174
172
175
- /// Gets a value indicating whether TinyMCE scripting sanitization should be applied
173
+ /// <summary>
174
+ /// Gets a value indicating whether TinyMCE scripting sanitization should be applied.
176
175
/// </summary>
177
176
[ DefaultValue ( StaticSanitizeTinyMce ) ]
178
177
public bool SanitizeTinyMce => StaticSanitizeTinyMce ;
179
178
180
179
/// <summary>
181
- /// An int value representing the time in milliseconds to lock the database for a write operation
180
+ /// Gets a value representing the time in milliseconds to lock the database for a write operation.
182
181
/// </summary>
183
182
/// <remarks>
184
- /// The default value is 5000 milliseconds
183
+ /// The default value is 5000 milliseconds.
185
184
/// </remarks>
186
- /// <value>The timeout in milliseconds.</value>
187
185
[ DefaultValue ( StaticSqlWriteLockTimeOut ) ]
188
186
public TimeSpan SqlWriteLockTimeOut { get ; } = TimeSpan . Parse ( StaticSqlWriteLockTimeOut ) ;
189
187
}
0 commit comments