| 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.Symbols; |
| 6 | |
| 7 | public static partial class SymbolDefinitions |
| 8 | { |
| 9 | public static readonly IntermediateSymbolDefinition AppId = new IntermediateSymbolDefinition( |
| 10 | SymbolDefinitionType.AppId, |
| 11 | new[] |
| 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.AppId), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RemoteServerName), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.LocalService), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ServiceParameters), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.DllSurrogate), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.ActivateAtStorage), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(AppIdSymbolFields.RunAsInteractiveUser), IntermediateFieldType.Number), |
| 20 | }, |
| 21 | typeof(AppIdSymbol)); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | namespace WixToolset.Data.Symbols |
| 26 | { |
| 27 | public enum AppIdSymbolFields |
| 28 | { |
| 29 | AppId, |
| 30 | RemoteServerName, |
| 31 | LocalService, |
| 32 | ServiceParameters, |
| 33 | DllSurrogate, |
| 34 | ActivateAtStorage, |
| 35 | RunAsInteractiveUser, |
| 36 | } |
| 37 | |
| 38 | public class AppIdSymbol : IntermediateSymbol |
| 39 | { |
| 40 | public AppIdSymbol() : base(SymbolDefinitions.AppId, null, null) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | public AppIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.AppId, sourceLineNumber, id) |
| 45 | { |
| 46 | } |
| 47 | |
| 48 | public IntermediateField this[AppIdSymbolFields index] => this.Fields[(int)index]; |
| 49 | |
| 50 | public string AppId |
| 51 | { |
| 52 | get => (string)this.Fields[(int)AppIdSymbolFields.AppId]; |
| 53 | set => this.Set((int)AppIdSymbolFields.AppId, value); |
| 54 | } |
| 55 | |
| 56 | public string RemoteServerName |
| 57 | { |
| 58 | get => (string)this.Fields[(int)AppIdSymbolFields.RemoteServerName]; |
| 59 | set => this.Set((int)AppIdSymbolFields.RemoteServerName, value); |
| 60 | } |
| 61 | |
| 62 | public string LocalService |
| 63 | { |
| 64 | get => (string)this.Fields[(int)AppIdSymbolFields.LocalService]; |
| 65 | set => this.Set((int)AppIdSymbolFields.LocalService, value); |
| 66 | } |
| 67 | |
| 68 | public string ServiceParameters |
| 69 | { |
| 70 | get => (string)this.Fields[(int)AppIdSymbolFields.ServiceParameters]; |
| 71 | set => this.Set((int)AppIdSymbolFields.ServiceParameters, value); |
| 72 | } |
| 73 | |
| 74 | public string DllSurrogate |
| 75 | { |
| 76 | get => (string)this.Fields[(int)AppIdSymbolFields.DllSurrogate]; |
| 77 | set => this.Set((int)AppIdSymbolFields.DllSurrogate, value); |
| 78 | } |
| 79 | |
| 80 | public bool? ActivateAtStorage |
| 81 | { |
| 82 | get => (bool?)this.Fields[(int)AppIdSymbolFields.ActivateAtStorage]; |
| 83 | set => this.Set((int)AppIdSymbolFields.ActivateAtStorage, value); |
| 84 | } |
| 85 | |
| 86 | public bool? RunAsInteractiveUser |
| 87 | { |
| 88 | get => (bool?)this.Fields[(int)AppIdSymbolFields.RunAsInteractiveUser]; |
| 89 | set => this.Set((int)AppIdSymbolFields.RunAsInteractiveUser, value); |
| 90 | } |
| 91 | } |
| 92 | } |