diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
| commit | 69b15d96cebdbb7201b1849b4f62786633d70b8d (patch) | |
| tree | 4b65de8679e4b4ab81b69edcccbac1ae9f55a16d /src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | |
| parent | a8656a87887d6cb2c54f4bbeacee37f7074f1032 (diff) | |
| download | wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.gz wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.bz2 wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.zip | |
Introduce WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs b/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs new file mode 100644 index 00000000..043be793 --- /dev/null +++ b/src/WixToolset.Data/Tuples/MsiServiceConfigFailureActionsTuple.cs | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition MsiServiceConfigFailureActions = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.MsiServiceConfigFailureActions, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Name), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Event), IntermediateFieldType.Number), | ||
| 16 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.ResetPeriod), IntermediateFieldType.Number), | ||
| 17 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.RebootMessage), IntermediateFieldType.String), | ||
| 18 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Command), IntermediateFieldType.String), | ||
| 19 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Actions), IntermediateFieldType.String), | ||
| 20 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.DelayActions), IntermediateFieldType.String), | ||
| 21 | new IntermediateFieldDefinition(nameof(MsiServiceConfigFailureActionsTupleFields.Component_), IntermediateFieldType.String), | ||
| 22 | }, | ||
| 23 | typeof(MsiServiceConfigFailureActionsTuple)); | ||
| 24 | } | ||
| 25 | } | ||
| 26 | |||
| 27 | namespace WixToolset.Data.Tuples | ||
| 28 | { | ||
| 29 | public enum MsiServiceConfigFailureActionsTupleFields | ||
| 30 | { | ||
| 31 | MsiServiceConfigFailureActions, | ||
| 32 | Name, | ||
| 33 | Event, | ||
| 34 | ResetPeriod, | ||
| 35 | RebootMessage, | ||
| 36 | Command, | ||
| 37 | Actions, | ||
| 38 | DelayActions, | ||
| 39 | Component_, | ||
| 40 | } | ||
| 41 | |||
| 42 | public class MsiServiceConfigFailureActionsTuple : IntermediateTuple | ||
| 43 | { | ||
| 44 | public MsiServiceConfigFailureActionsTuple() : base(TupleDefinitions.MsiServiceConfigFailureActions, null, null) | ||
| 45 | { | ||
| 46 | } | ||
| 47 | |||
| 48 | public MsiServiceConfigFailureActionsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiServiceConfigFailureActions, sourceLineNumber, id) | ||
| 49 | { | ||
| 50 | } | ||
| 51 | |||
| 52 | public IntermediateField this[MsiServiceConfigFailureActionsTupleFields index] => this.Fields[(int)index]; | ||
| 53 | |||
| 54 | public string MsiServiceConfigFailureActions | ||
| 55 | { | ||
| 56 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions]?.Value; | ||
| 57 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.MsiServiceConfigFailureActions, value); | ||
| 58 | } | ||
| 59 | |||
| 60 | public string Name | ||
| 61 | { | ||
| 62 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Name]?.Value; | ||
| 63 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Name, value); | ||
| 64 | } | ||
| 65 | |||
| 66 | public int Event | ||
| 67 | { | ||
| 68 | get => (int)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Event]?.Value; | ||
| 69 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Event, value); | ||
| 70 | } | ||
| 71 | |||
| 72 | public int ResetPeriod | ||
| 73 | { | ||
| 74 | get => (int)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod]?.Value; | ||
| 75 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.ResetPeriod, value); | ||
| 76 | } | ||
| 77 | |||
| 78 | public string RebootMessage | ||
| 79 | { | ||
| 80 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.RebootMessage]?.Value; | ||
| 81 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.RebootMessage, value); | ||
| 82 | } | ||
| 83 | |||
| 84 | public string Command | ||
| 85 | { | ||
| 86 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Command]?.Value; | ||
| 87 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Command, value); | ||
| 88 | } | ||
| 89 | |||
| 90 | public string Actions | ||
| 91 | { | ||
| 92 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Actions]?.Value; | ||
| 93 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Actions, value); | ||
| 94 | } | ||
| 95 | |||
| 96 | public string DelayActions | ||
| 97 | { | ||
| 98 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.DelayActions]?.Value; | ||
| 99 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.DelayActions, value); | ||
| 100 | } | ||
| 101 | |||
| 102 | public string Component_ | ||
| 103 | { | ||
| 104 | get => (string)this.Fields[(int)MsiServiceConfigFailureActionsTupleFields.Component_]?.Value; | ||
| 105 | set => this.Set((int)MsiServiceConfigFailureActionsTupleFields.Component_, value); | ||
| 106 | } | ||
| 107 | } | ||
| 108 | } \ No newline at end of file | ||
