diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs index 242098cd..9ad72d1e 100644 --- a/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs +++ b/src/WixToolset.Data/Tuples/MsiServiceConfigTuple.cs | |||
| @@ -2,29 +2,29 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition MsiServiceConfig = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition MsiServiceConfig = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.MsiServiceConfig, | 10 | SymbolDefinitionType.MsiServiceConfig, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Name), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Name), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnInstall), IntermediateFieldType.Bool), | 14 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnInstall), IntermediateFieldType.Bool), |
| 15 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnReinstall), IntermediateFieldType.Bool), | 15 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnReinstall), IntermediateFieldType.Bool), |
| 16 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.OnUninstall), IntermediateFieldType.Bool), | 16 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsSymbolFields.OnUninstall), IntermediateFieldType.Bool), |
| 17 | new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.ConfigType), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ConfigType), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.Argument), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.Argument), IntermediateFieldType.String), |
| 19 | new IntermediateFieldDefinition(nameof(MsiServiceConfigTupleFields.ComponentRef), IntermediateFieldType.String), | 19 | new IntermediateFieldDefinition(nameof(MsiServiceConfigSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 20 | }, | 20 | }, |
| 21 | typeof(MsiServiceConfigTuple)); | 21 | typeof(MsiServiceConfigSymbol)); |
| 22 | } | 22 | } |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | namespace WixToolset.Data.Tuples | 25 | namespace WixToolset.Data.Symbols |
| 26 | { | 26 | { |
| 27 | public enum MsiServiceConfigTupleFields | 27 | public enum MsiServiceConfigSymbolFields |
| 28 | { | 28 | { |
| 29 | Name, | 29 | Name, |
| 30 | OnInstall, | 30 | OnInstall, |
| @@ -44,58 +44,58 @@ namespace WixToolset.Data.Tuples | |||
| 44 | PreshutdownInfo, | 44 | PreshutdownInfo, |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | public class MsiServiceConfigTuple : IntermediateTuple | 47 | public class MsiServiceConfigSymbol : IntermediateSymbol |
| 48 | { | 48 | { |
| 49 | public MsiServiceConfigTuple() : base(TupleDefinitions.MsiServiceConfig, null, null) | 49 | public MsiServiceConfigSymbol() : base(SymbolDefinitions.MsiServiceConfig, null, null) |
| 50 | { | 50 | { |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | public MsiServiceConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiServiceConfig, sourceLineNumber, id) | 53 | public MsiServiceConfigSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiServiceConfig, sourceLineNumber, id) |
| 54 | { | 54 | { |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | public IntermediateField this[MsiServiceConfigTupleFields index] => this.Fields[(int)index]; | 57 | public IntermediateField this[MsiServiceConfigSymbolFields index] => this.Fields[(int)index]; |
| 58 | 58 | ||
| 59 | public string Name | 59 | public string Name |
| 60 | { | 60 | { |
| 61 | get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Name]; | 61 | get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Name]; |
| 62 | set => this.Set((int)MsiServiceConfigTupleFields.Name, value); | 62 | set => this.Set((int)MsiServiceConfigSymbolFields.Name, value); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | public bool OnInstall | 65 | public bool OnInstall |
| 66 | { | 66 | { |
| 67 | get => this.Fields[(int)MsiServiceConfigTupleFields.OnInstall].AsBool(); | 67 | get => this.Fields[(int)MsiServiceConfigSymbolFields.OnInstall].AsBool(); |
| 68 | set => this.Set((int)MsiServiceConfigTupleFields.OnInstall, value); | 68 | set => this.Set((int)MsiServiceConfigSymbolFields.OnInstall, value); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | public bool OnReinstall | 71 | public bool OnReinstall |
| 72 | { | 72 | { |
| 73 | get => this.Fields[(int)MsiServiceConfigTupleFields.OnReinstall].AsBool(); | 73 | get => this.Fields[(int)MsiServiceConfigSymbolFields.OnReinstall].AsBool(); |
| 74 | set => this.Set((int)MsiServiceConfigTupleFields.OnReinstall, value); | 74 | set => this.Set((int)MsiServiceConfigSymbolFields.OnReinstall, value); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | public bool OnUninstall | 77 | public bool OnUninstall |
| 78 | { | 78 | { |
| 79 | get => this.Fields[(int)MsiServiceConfigTupleFields.OnUninstall].AsBool(); | 79 | get => this.Fields[(int)MsiServiceConfigSymbolFields.OnUninstall].AsBool(); |
| 80 | set => this.Set((int)MsiServiceConfigTupleFields.OnUninstall, value); | 80 | set => this.Set((int)MsiServiceConfigSymbolFields.OnUninstall, value); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | public MsiServiceConfigType ConfigType | 83 | public MsiServiceConfigType ConfigType |
| 84 | { | 84 | { |
| 85 | get => (MsiServiceConfigType)this.Fields[(int)MsiServiceConfigTupleFields.ConfigType].AsNumber(); | 85 | get => (MsiServiceConfigType)this.Fields[(int)MsiServiceConfigSymbolFields.ConfigType].AsNumber(); |
| 86 | set => this.Set((int)MsiServiceConfigTupleFields.ConfigType, (int)value); | 86 | set => this.Set((int)MsiServiceConfigSymbolFields.ConfigType, (int)value); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | public string Argument | 89 | public string Argument |
| 90 | { | 90 | { |
| 91 | get => (string)this.Fields[(int)MsiServiceConfigTupleFields.Argument]; | 91 | get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.Argument]; |
| 92 | set => this.Set((int)MsiServiceConfigTupleFields.Argument, value); | 92 | set => this.Set((int)MsiServiceConfigSymbolFields.Argument, value); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | public string ComponentRef | 95 | public string ComponentRef |
| 96 | { | 96 | { |
| 97 | get => (string)this.Fields[(int)MsiServiceConfigTupleFields.ComponentRef]; | 97 | get => (string)this.Fields[(int)MsiServiceConfigSymbolFields.ComponentRef]; |
| 98 | set => this.Set((int)MsiServiceConfigTupleFields.ComponentRef, value); | 98 | set => this.Set((int)MsiServiceConfigSymbolFields.ComponentRef, value); |
| 99 | } | 99 | } |
| 100 | } | 100 | } |
| 101 | } \ No newline at end of file | 101 | } \ No newline at end of file |
