File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\Format.cs" Link =" Common\Format.cs" />
6666 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\PlatformType.cs" Link =" Common\PlatformType.cs" />
6767 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\ReportType.cs" Link =" Common\ReportType.cs" />
68+ <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\UpdateMode.cs" Link =" Common\UpdateMode.cs" />
6869 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfo.cs" Link =" Common\GlobalConfigInfo.cs" />
6970 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfoOSS.cs" Link =" Common\GlobalConfigInfoOSS.cs" />
7071 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\ObjectTranslator.cs" Link =" Common\ObjectTranslator.cs" />
Original file line number Diff line number Diff line change 6363 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\Format.cs" Link =" Common\Format.cs" />
6464 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\PlatformType.cs" Link =" Common\PlatformType.cs" />
6565 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\ReportType.cs" Link =" Common\ReportType.cs" />
66+ <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\UpdateMode.cs" Link =" Common\UpdateMode.cs" />
6667 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfo.cs" Link =" Common\GlobalConfigInfo.cs" />
6768 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfoOSS.cs" Link =" Common\GlobalConfigInfoOSS.cs" />
6869 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\ObjectTranslator.cs" Link =" Common\ObjectTranslator.cs" />
Original file line number Diff line number Diff line change 33using System . Diagnostics . Contracts ;
44using System . Text ;
55using System . Threading ;
6+ using GeneralUpdate . Common . Shared . Object . Enum ;
67
78namespace GeneralUpdate . Common . Internal . Bootstrap
89{
@@ -47,6 +48,11 @@ private class UpdateOptionPool : ConstantPool
4748 /// </summary>
4849 public static readonly UpdateOption < bool ? > BackUp = ValueOf < bool ? > ( "BACKUP" ) ;
4950
51+ /// <summary>
52+ /// Whether to enable the backup function.
53+ /// </summary>
54+ public static readonly UpdateOption < UpdateMode ? > Mode = ValueOf < UpdateMode ? > ( "MODE" ) ;
55+
5056 internal UpdateOption ( int id , string name )
5157 : base ( id , name ) { }
5258
Original file line number Diff line number Diff line change 1+ namespace GeneralUpdate . Common . Shared . Object . Enum ;
2+
3+ public enum UpdateMode
4+ {
5+ Default = 0 ,
6+ Scripts = 1
7+ }
Original file line number Diff line number Diff line change 6868 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\Format.cs" Link =" Common\Format.cs" />
6969 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\PlatformType.cs" Link =" Common\PlatformType.cs" />
7070 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\ReportType.cs" Link =" Common\ReportType.cs" />
71+ <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\Enum\UpdateMode.cs" Link =" Common\UpdateMode.cs" />
7172 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfo.cs" Link =" Common\GlobalConfigInfo.cs" />
7273 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\GlobalConfigInfoOSS.cs" Link =" Common\GlobalConfigInfoOSS.cs" />
7374 <Compile Include =" ..\GeneralUpdate.Common\Shared\Object\ObjectTranslator.cs" Link =" Common\ObjectTranslator.cs" />
You can’t perform that action at this time.
0 commit comments