File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,24 +7,16 @@ public class AppConfiguration
77{
88 [ Required ]
99 [ Range ( 1 , int . MaxValue ) ]
10- public int FormatVersion { get ; set ; } = 1 ;
10+ public int FormatVersion { get ; set ; } = 2 ;
1111
1212 public bool CheckForAppUpdates { get ; set ; } = true ;
1313 public bool CheckForCodeUpdates { get ; set ; } = true ;
1414 public bool CheckForFwUpdates { get ; set ; } = true ;
1515
16- [ Required ]
17- [ Url ]
18- public Uri AppUpdateUrl { get ; set ; } = new Uri ( "https://example.com/todo" ) ;
19-
2016 [ Required ]
2117 [ Url ]
2218 public Uri CodesMetaBaseUrl { get ; set ; } = new Uri ( "https://errors.xboxresearch.com" ) ;
2319
24- [ Required ]
25- [ Url ]
26- public Uri FwUpdateUrl { get ; set ; } = new Uri ( "https://example.com/todo" ) ;
27-
2820 [ Required ]
2921 public string Language { get ; set ; } = "en-US" ;
3022
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace PostCodeSerialMonitor;
1212
1313public static class ServiceCollectionExtensions
1414{
15- const int SUPPORTED_CONFIG_FORMAT_VERSION = 1 ;
15+ const int SUPPORTED_CONFIG_FORMAT_VERSION = 2 ;
1616 public static void AddCommonServices ( this IServiceCollection collection )
1717 {
1818 // Configure logging
Original file line number Diff line number Diff line change 11{
22 "AppConfiguration" : {
3- "FormatVersion" : 1 ,
3+ "FormatVersion" : 2 ,
44 "CheckForAppUpdates" : true ,
55 "CheckForCodeUpdates" : true ,
66 "CheckForFwUpdates" : true ,
7- "AppUpdateUrl" : " https://example.com/todo" ,
87 "CodesMetaBaseUrl" : " https://errors.xboxresearch.com/" ,
9- "FwUpdateUrl" : " https://example.com/todo" ,
108 "MetaStoragePath" : " meta" ,
119 "Language" : " en-US" ,
1210 "MetaJsonUrl" : " https://errors.xboxresearch.com/meta.json"
You can’t perform that action at this time.
0 commit comments