diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-11 08:02:58 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 08:02:58 -0700 |
| commit | e835776f17056097559c13f25b4c875c7361bd5b (patch) | |
| tree | 8b1c3af05e44e55cf61318474d90dcb53a2e3bb6 /src/ext/Http/wixext/HttpTableDefinitions.cs | |
| parent | 52868c16c483776d0c55ab7f2a0828a0ee55c39d (diff) | |
| parent | 4194343c39fa66778a8de9804c88789bd41dae48 (diff) | |
| download | wix-e835776f17056097559c13f25b4c875c7361bd5b.tar.gz wix-e835776f17056097559c13f25b4c875c7361bd5b.tar.bz2 wix-e835776f17056097559c13f25b4c875c7361bd5b.zip | |
Merge Http.wixext
Diffstat (limited to 'src/ext/Http/wixext/HttpTableDefinitions.cs')
| -rw-r--r-- | src/ext/Http/wixext/HttpTableDefinitions.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/ext/Http/wixext/HttpTableDefinitions.cs b/src/ext/Http/wixext/HttpTableDefinitions.cs new file mode 100644 index 00000000..431b9a33 --- /dev/null +++ b/src/ext/Http/wixext/HttpTableDefinitions.cs | |||
| @@ -0,0 +1,60 @@ | |||
| 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.Http | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | |||
| 7 | public static class HttpTableDefinitions | ||
| 8 | { | ||
| 9 | public static readonly TableDefinition WixHttpSniSslCert = new TableDefinition( | ||
| 10 | "Wix4HttpSniSslCert", | ||
| 11 | HttpSymbolDefinitions.WixHttpSniSslCert, | ||
| 12 | new[] | ||
| 13 | { | ||
| 14 | new ColumnDefinition("Wix4HttpSniSslCert", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), | ||
| 15 | new ColumnDefinition("Host", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "Host for the SNI SSL certificate.", modularizeType: ColumnModularizeType.Property), | ||
| 16 | new ColumnDefinition("Port", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "Port for the SNI SSL certificate.", modularizeType: ColumnModularizeType.Property), | ||
| 17 | new ColumnDefinition("Thumbprint", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "humbprint of the SNI SSL certificate to find.", modularizeType: ColumnModularizeType.Property), | ||
| 18 | new ColumnDefinition("AppId", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Optional application id for the SNI SSL certificate.", modularizeType: ColumnModularizeType.Property), | ||
| 19 | new ColumnDefinition("Store", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Optional application id for the SNI SSL certificate.", modularizeType: ColumnModularizeType.Property), | ||
| 20 | new ColumnDefinition("HandleExisting", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 2, description: "The behavior when trying to install a SNI SSL certificate and it already exists."), | ||
| 21 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "Foreign key into the Component table referencing the component that controls the URL reservation.", modularizeType: ColumnModularizeType.Column), | ||
| 22 | }, | ||
| 23 | symbolIdIsPrimaryKey: true | ||
| 24 | ); | ||
| 25 | |||
| 26 | public static readonly TableDefinition WixHttpUrlReservation = new TableDefinition( | ||
| 27 | "Wix4HttpUrlReservation", | ||
| 28 | HttpSymbolDefinitions.WixHttpUrlReservation, | ||
| 29 | new[] | ||
| 30 | { | ||
| 31 | new ColumnDefinition("Wix4HttpUrlReservation", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), | ||
| 32 | new ColumnDefinition("HandleExisting", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 2, description: "The behavior when trying to install a URL reservation and it already exists."), | ||
| 33 | new ColumnDefinition("Sddl", ColumnType.String, 0, primaryKey: false, nullable: true, ColumnCategory.Formatted, description: "Security descriptor for the URL reservation.", modularizeType: ColumnModularizeType.Property), | ||
| 34 | new ColumnDefinition("Url", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "URL to be reserved.", modularizeType: ColumnModularizeType.Property), | ||
| 35 | new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "Foreign key into the Component table referencing the component that controls the URL reservation.", modularizeType: ColumnModularizeType.Column), | ||
| 36 | }, | ||
| 37 | symbolIdIsPrimaryKey: true | ||
| 38 | ); | ||
| 39 | |||
| 40 | public static readonly TableDefinition WixHttpUrlAce = new TableDefinition( | ||
| 41 | "Wix4HttpUrlAce", | ||
| 42 | HttpSymbolDefinitions.WixHttpUrlAce, | ||
| 43 | new[] | ||
| 44 | { | ||
| 45 | new ColumnDefinition("Wix4HttpUrlAce", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), | ||
| 46 | new ColumnDefinition("WixHttpUrlReservation_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "WixHttpUrlReservation", keyColumn: 1, description: "Foreign key into the WixHttpUrlReservation table.", modularizeType: ColumnModularizeType.Column), | ||
| 47 | new ColumnDefinition("SecurityPrincipal", ColumnType.String, 0, primaryKey: false, nullable: false, ColumnCategory.Formatted, description: "The security principal for this ACE.", modularizeType: ColumnModularizeType.Property), | ||
| 48 | new ColumnDefinition("Rights", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 1073741824, description: "The rights for this ACE."), | ||
| 49 | }, | ||
| 50 | symbolIdIsPrimaryKey: true | ||
| 51 | ); | ||
| 52 | |||
| 53 | public static readonly TableDefinition[] All = new[] | ||
| 54 | { | ||
| 55 | WixHttpSniSslCert, | ||
| 56 | WixHttpUrlReservation, | ||
| 57 | WixHttpUrlAce, | ||
| 58 | }; | ||
| 59 | } | ||
| 60 | } | ||
