diff options
Diffstat (limited to 'src/wixext/IIsCompiler.cs')
| -rw-r--r-- | src/wixext/IIsCompiler.cs | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/src/wixext/IIsCompiler.cs b/src/wixext/IIsCompiler.cs index f84f8f0a..6f0cdd5e 100644 --- a/src/wixext/IIsCompiler.cs +++ b/src/wixext/IIsCompiler.cs | |||
| @@ -8,7 +8,7 @@ namespace WixToolset.Iis | |||
| 8 | using System.Xml.Linq; | 8 | using System.Xml.Linq; |
| 9 | using WixToolset.Data; | 9 | using WixToolset.Data; |
| 10 | using WixToolset.Extensibility; | 10 | using WixToolset.Extensibility; |
| 11 | using WixToolset.Iis.Tuples; | 11 | using WixToolset.Iis.Symbols; |
| 12 | 12 | ||
| 13 | /// <summary> | 13 | /// <summary> |
| 14 | /// The compiler for the WiX Toolset Internet Information Services Extension. | 14 | /// The compiler for the WiX Toolset Internet Information Services Extension. |
| @@ -159,7 +159,7 @@ namespace WixToolset.Iis | |||
| 159 | case "BinaryKey": | 159 | case "BinaryKey": |
| 160 | attributes |= 2; // SCA_CERT_ATTRIBUTE_BINARYDATA | 160 | attributes |= 2; // SCA_CERT_ATTRIBUTE_BINARYDATA |
| 161 | binaryKey = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 161 | binaryKey = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 162 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.Binary, binaryKey); | 162 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.Binary, binaryKey); |
| 163 | break; | 163 | break; |
| 164 | case "CertificatePath": | 164 | case "CertificatePath": |
| 165 | certificatePath = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); | 165 | certificatePath = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
| @@ -287,13 +287,13 @@ namespace WixToolset.Iis | |||
| 287 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); | 287 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); |
| 288 | 288 | ||
| 289 | // Reference InstallCertificates and UninstallCertificates since nothing will happen without them | 289 | // Reference InstallCertificates and UninstallCertificates since nothing will happen without them |
| 290 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "InstallCertificates"); | 290 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "InstallCertificates"); |
| 291 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "UninstallCertificates"); | 291 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "UninstallCertificates"); |
| 292 | this.ParseHelper.EnsureTable(section, sourceLineNumbers, IisTableDefinitions.CertificateHash); // Certificate CustomActions require the CertificateHash table | 292 | this.ParseHelper.EnsureTable(section, sourceLineNumbers, IisTableDefinitions.CertificateHash); // Certificate CustomActions require the CertificateHash table |
| 293 | 293 | ||
| 294 | if (!this.Messaging.EncounteredError) | 294 | if (!this.Messaging.EncounteredError) |
| 295 | { | 295 | { |
| 296 | section.AddTuple(new CertificateTuple(sourceLineNumbers, id) | 296 | section.AddSymbol(new CertificateSymbol(sourceLineNumbers, id) |
| 297 | { | 297 | { |
| 298 | ComponentRef = componentId, | 298 | ComponentRef = componentId, |
| 299 | Name = name, | 299 | Name = name, |
| @@ -325,7 +325,7 @@ namespace WixToolset.Iis | |||
| 325 | { | 325 | { |
| 326 | case "Id": | 326 | case "Id": |
| 327 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); | 327 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); |
| 328 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.Certificate, id.Id); | 328 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.Certificate, id.Id); |
| 329 | break; | 329 | break; |
| 330 | default: | 330 | default: |
| 331 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 331 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -347,9 +347,9 @@ namespace WixToolset.Iis | |||
| 347 | 347 | ||
| 348 | if (!this.Messaging.EncounteredError) | 348 | if (!this.Messaging.EncounteredError) |
| 349 | { | 349 | { |
| 350 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.Certificate, id.Id); | 350 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.Certificate, id.Id); |
| 351 | 351 | ||
| 352 | section.AddTuple(new IIsWebSiteCertificatesTuple(sourceLineNumbers) | 352 | section.AddSymbol(new IIsWebSiteCertificatesSymbol(sourceLineNumbers) |
| 353 | { | 353 | { |
| 354 | WebRef = webId, | 354 | WebRef = webId, |
| 355 | CertificateRef = id.Id, | 355 | CertificateRef = id.Id, |
| @@ -422,7 +422,7 @@ namespace WixToolset.Iis | |||
| 422 | 422 | ||
| 423 | if (!this.Messaging.EncounteredError) | 423 | if (!this.Messaging.EncounteredError) |
| 424 | { | 424 | { |
| 425 | section.AddTuple(new IIsMimeMapTuple(sourceLineNumbers, id) | 425 | section.AddSymbol(new IIsMimeMapSymbol(sourceLineNumbers, id) |
| 426 | { | 426 | { |
| 427 | ParentType = (int)parentType, | 427 | ParentType = (int)parentType, |
| 428 | ParentValue = parentId, | 428 | ParentValue = parentId, |
| @@ -533,7 +533,7 @@ namespace WixToolset.Iis | |||
| 533 | 533 | ||
| 534 | if (!this.Messaging.EncounteredError) | 534 | if (!this.Messaging.EncounteredError) |
| 535 | { | 535 | { |
| 536 | section.AddTuple(new IIsWebAddressTuple(sourceLineNumbers, id) | 536 | section.AddSymbol(new IIsWebAddressSymbol(sourceLineNumbers, id) |
| 537 | { | 537 | { |
| 538 | WebRef = parentWeb, | 538 | WebRef = parentWeb, |
| 539 | IP = ip, | 539 | IP = ip, |
| @@ -639,7 +639,7 @@ namespace WixToolset.Iis | |||
| 639 | break; | 639 | break; |
| 640 | case "WebAppPool": | 640 | case "WebAppPool": |
| 641 | appPool = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 641 | appPool = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 642 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsAppPool, appPool); | 642 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsAppPool, appPool); |
| 643 | break; | 643 | break; |
| 644 | default: | 644 | default: |
| 645 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 645 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -688,7 +688,7 @@ namespace WixToolset.Iis | |||
| 688 | 688 | ||
| 689 | if (!this.Messaging.EncounteredError) | 689 | if (!this.Messaging.EncounteredError) |
| 690 | { | 690 | { |
| 691 | var tuple = section.AddTuple(new IIsWebApplicationTuple(sourceLineNumbers, id) | 691 | var symbol = section.AddSymbol(new IIsWebApplicationSymbol(sourceLineNumbers, id) |
| 692 | { | 692 | { |
| 693 | Name = name, | 693 | Name = name, |
| 694 | Isolation = isolation, | 694 | Isolation = isolation, |
| @@ -698,37 +698,37 @@ namespace WixToolset.Iis | |||
| 698 | 698 | ||
| 699 | if (YesNoDefaultType.Default != allowSessions) | 699 | if (YesNoDefaultType.Default != allowSessions) |
| 700 | { | 700 | { |
| 701 | tuple.AllowSessions = YesNoDefaultType.Yes == allowSessions ? 1 : 0; | 701 | symbol.AllowSessions = YesNoDefaultType.Yes == allowSessions ? 1 : 0; |
| 702 | } | 702 | } |
| 703 | 703 | ||
| 704 | if (CompilerConstants.IntegerNotSet != sessionTimeout) | 704 | if (CompilerConstants.IntegerNotSet != sessionTimeout) |
| 705 | { | 705 | { |
| 706 | tuple.SessionTimeout = sessionTimeout; | 706 | symbol.SessionTimeout = sessionTimeout; |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | if (YesNoDefaultType.Default != buffer) | 709 | if (YesNoDefaultType.Default != buffer) |
| 710 | { | 710 | { |
| 711 | tuple.Buffer = YesNoDefaultType.Yes == buffer ? 1 : 0; | 711 | symbol.Buffer = YesNoDefaultType.Yes == buffer ? 1 : 0; |
| 712 | } | 712 | } |
| 713 | 713 | ||
| 714 | if (YesNoDefaultType.Default != parentPaths) | 714 | if (YesNoDefaultType.Default != parentPaths) |
| 715 | { | 715 | { |
| 716 | tuple.ParentPaths = YesNoDefaultType.Yes == parentPaths ? 1 : 0; | 716 | symbol.ParentPaths = YesNoDefaultType.Yes == parentPaths ? 1 : 0; |
| 717 | } | 717 | } |
| 718 | 718 | ||
| 719 | if (CompilerConstants.IntegerNotSet != scriptTimeout) | 719 | if (CompilerConstants.IntegerNotSet != scriptTimeout) |
| 720 | { | 720 | { |
| 721 | tuple.ScriptTimeout = scriptTimeout; | 721 | symbol.ScriptTimeout = scriptTimeout; |
| 722 | } | 722 | } |
| 723 | 723 | ||
| 724 | if (YesNoDefaultType.Default != serverDebugging) | 724 | if (YesNoDefaultType.Default != serverDebugging) |
| 725 | { | 725 | { |
| 726 | tuple.ServerDebugging = YesNoDefaultType.Yes == serverDebugging ? 1 : 0; | 726 | symbol.ServerDebugging = YesNoDefaultType.Yes == serverDebugging ? 1 : 0; |
| 727 | } | 727 | } |
| 728 | 728 | ||
| 729 | if (YesNoDefaultType.Default != clientDebugging) | 729 | if (YesNoDefaultType.Default != clientDebugging) |
| 730 | { | 730 | { |
| 731 | tuple.ClientDebugging = YesNoDefaultType.Yes == clientDebugging ? 1 : 0; | 731 | symbol.ClientDebugging = YesNoDefaultType.Yes == clientDebugging ? 1 : 0; |
| 732 | } | 732 | } |
| 733 | } | 733 | } |
| 734 | 734 | ||
| @@ -798,7 +798,7 @@ namespace WixToolset.Iis | |||
| 798 | 798 | ||
| 799 | if (!this.Messaging.EncounteredError) | 799 | if (!this.Messaging.EncounteredError) |
| 800 | { | 800 | { |
| 801 | var tuple = section.AddTuple(new IIsWebApplicationExtensionTuple(sourceLineNumbers) | 801 | var symbol = section.AddSymbol(new IIsWebApplicationExtensionSymbol(sourceLineNumbers) |
| 802 | { | 802 | { |
| 803 | ApplicationRef = application, | 803 | ApplicationRef = application, |
| 804 | Extension = extension, | 804 | Extension = extension, |
| @@ -808,7 +808,7 @@ namespace WixToolset.Iis | |||
| 808 | 808 | ||
| 809 | if (0 < attributes) | 809 | if (0 < attributes) |
| 810 | { | 810 | { |
| 811 | tuple.Attributes = attributes; | 811 | symbol.Attributes = attributes; |
| 812 | } | 812 | } |
| 813 | } | 813 | } |
| 814 | } | 814 | } |
| @@ -925,7 +925,7 @@ namespace WixToolset.Iis | |||
| 925 | { | 925 | { |
| 926 | switch (managedPipelineMode) | 926 | switch (managedPipelineMode) |
| 927 | { | 927 | { |
| 928 | // In 3.5 we allowed lower case values (per camel case enum style), we now use formatted fields, | 928 | // In 3.5 we allowed lower case values (per camel case enum style), we now use formatted fields, |
| 929 | // so the value needs to match exactly what we pass in to IIS which uses pascal case. | 929 | // so the value needs to match exactly what we pass in to IIS which uses pascal case. |
| 930 | case "classic": | 930 | case "classic": |
| 931 | managedPipelineMode = "Classic"; | 931 | managedPipelineMode = "Classic"; |
| @@ -1113,7 +1113,7 @@ namespace WixToolset.Iis | |||
| 1113 | 1113 | ||
| 1114 | if (!this.Messaging.EncounteredError) | 1114 | if (!this.Messaging.EncounteredError) |
| 1115 | { | 1115 | { |
| 1116 | var tuple = section.AddTuple(new IIsAppPoolTuple(sourceLineNumbers, id) | 1116 | var symbol = section.AddSymbol(new IIsAppPoolSymbol(sourceLineNumbers, id) |
| 1117 | { | 1117 | { |
| 1118 | Name = name, | 1118 | Name = name, |
| 1119 | ComponentRef = componentId, | 1119 | ComponentRef = componentId, |
| @@ -1127,37 +1127,37 @@ namespace WixToolset.Iis | |||
| 1127 | 1127 | ||
| 1128 | if (CompilerConstants.IntegerNotSet != recycleMinutes) | 1128 | if (CompilerConstants.IntegerNotSet != recycleMinutes) |
| 1129 | { | 1129 | { |
| 1130 | tuple.RecycleMinutes = recycleMinutes; | 1130 | symbol.RecycleMinutes = recycleMinutes; |
| 1131 | } | 1131 | } |
| 1132 | 1132 | ||
| 1133 | if (CompilerConstants.IntegerNotSet != recycleRequests) | 1133 | if (CompilerConstants.IntegerNotSet != recycleRequests) |
| 1134 | { | 1134 | { |
| 1135 | tuple.RecycleRequests = recycleRequests; | 1135 | symbol.RecycleRequests = recycleRequests; |
| 1136 | } | 1136 | } |
| 1137 | 1137 | ||
| 1138 | if (CompilerConstants.IntegerNotSet != idleTimeout) | 1138 | if (CompilerConstants.IntegerNotSet != idleTimeout) |
| 1139 | { | 1139 | { |
| 1140 | tuple.IdleTimeout = idleTimeout; | 1140 | symbol.IdleTimeout = idleTimeout; |
| 1141 | } | 1141 | } |
| 1142 | 1142 | ||
| 1143 | if (CompilerConstants.IntegerNotSet != queueLimit) | 1143 | if (CompilerConstants.IntegerNotSet != queueLimit) |
| 1144 | { | 1144 | { |
| 1145 | tuple.QueueLimit = queueLimit; | 1145 | symbol.QueueLimit = queueLimit; |
| 1146 | } | 1146 | } |
| 1147 | 1147 | ||
| 1148 | if (CompilerConstants.IntegerNotSet != maxWorkerProcs) | 1148 | if (CompilerConstants.IntegerNotSet != maxWorkerProcs) |
| 1149 | { | 1149 | { |
| 1150 | tuple.MaxProc = maxWorkerProcs; | 1150 | symbol.MaxProc = maxWorkerProcs; |
| 1151 | } | 1151 | } |
| 1152 | 1152 | ||
| 1153 | if (CompilerConstants.IntegerNotSet != virtualMemory) | 1153 | if (CompilerConstants.IntegerNotSet != virtualMemory) |
| 1154 | { | 1154 | { |
| 1155 | tuple.VirtualMemory = virtualMemory; | 1155 | symbol.VirtualMemory = virtualMemory; |
| 1156 | } | 1156 | } |
| 1157 | 1157 | ||
| 1158 | if (CompilerConstants.IntegerNotSet != privateMemory) | 1158 | if (CompilerConstants.IntegerNotSet != privateMemory) |
| 1159 | { | 1159 | { |
| 1160 | tuple.PrivateMemory = privateMemory; | 1160 | symbol.PrivateMemory = privateMemory; |
| 1161 | } | 1161 | } |
| 1162 | } | 1162 | } |
| 1163 | } | 1163 | } |
| @@ -1201,7 +1201,7 @@ namespace WixToolset.Iis | |||
| 1201 | } | 1201 | } |
| 1202 | 1202 | ||
| 1203 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 1203 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 1204 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebSite, parentWeb); | 1204 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebSite, parentWeb); |
| 1205 | break; | 1205 | break; |
| 1206 | default: | 1206 | default: |
| 1207 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 1207 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -1278,17 +1278,17 @@ namespace WixToolset.Iis | |||
| 1278 | 1278 | ||
| 1279 | if (null != application) | 1279 | if (null != application) |
| 1280 | { | 1280 | { |
| 1281 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebApplication, application); | 1281 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebApplication, application); |
| 1282 | } | 1282 | } |
| 1283 | 1283 | ||
| 1284 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebDirProperties, dirProperties); | 1284 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebDirProperties, dirProperties); |
| 1285 | 1285 | ||
| 1286 | // Reference ConfigureIIs since nothing will happen without it | 1286 | // Reference ConfigureIIs since nothing will happen without it |
| 1287 | this.AddReferenceToConfigureIIs(section, sourceLineNumbers); | 1287 | this.AddReferenceToConfigureIIs(section, sourceLineNumbers); |
| 1288 | 1288 | ||
| 1289 | if (!this.Messaging.EncounteredError) | 1289 | if (!this.Messaging.EncounteredError) |
| 1290 | { | 1290 | { |
| 1291 | section.AddTuple(new IIsWebDirTuple(sourceLineNumbers, id) | 1291 | section.AddSymbol(new IIsWebDirSymbol(sourceLineNumbers, id) |
| 1292 | { | 1292 | { |
| 1293 | ComponentRef = componentId, | 1293 | ComponentRef = componentId, |
| 1294 | WebRef = parentWeb, | 1294 | WebRef = parentWeb, |
| @@ -1557,7 +1557,7 @@ namespace WixToolset.Iis | |||
| 1557 | 1557 | ||
| 1558 | if (!this.Messaging.EncounteredError) | 1558 | if (!this.Messaging.EncounteredError) |
| 1559 | { | 1559 | { |
| 1560 | var tuple = section.AddTuple(new IIsWebDirPropertiesTuple(sourceLineNumbers, id) | 1560 | var symbol = section.AddSymbol(new IIsWebDirPropertiesSymbol(sourceLineNumbers, id) |
| 1561 | { | 1561 | { |
| 1562 | AnonymousUserRef = anonymousUser, | 1562 | AnonymousUserRef = anonymousUser, |
| 1563 | IIsControlledPassword = iisControlledPassword ? 1 : 0, | 1563 | IIsControlledPassword = iisControlledPassword ? 1 : 0, |
| @@ -1568,47 +1568,47 @@ namespace WixToolset.Iis | |||
| 1568 | 1568 | ||
| 1569 | if (accessSet) | 1569 | if (accessSet) |
| 1570 | { | 1570 | { |
| 1571 | tuple.Access = access; | 1571 | symbol.Access = access; |
| 1572 | } | 1572 | } |
| 1573 | 1573 | ||
| 1574 | if (authorizationSet) | 1574 | if (authorizationSet) |
| 1575 | { | 1575 | { |
| 1576 | tuple.Authorization = authorization; | 1576 | symbol.Authorization = authorization; |
| 1577 | } | 1577 | } |
| 1578 | 1578 | ||
| 1579 | if (YesNoType.NotSet != logVisits) | 1579 | if (YesNoType.NotSet != logVisits) |
| 1580 | { | 1580 | { |
| 1581 | tuple.LogVisits = YesNoType.Yes == logVisits ? 1 : 0; | 1581 | symbol.LogVisits = YesNoType.Yes == logVisits ? 1 : 0; |
| 1582 | } | 1582 | } |
| 1583 | 1583 | ||
| 1584 | if (YesNoType.NotSet != index) | 1584 | if (YesNoType.NotSet != index) |
| 1585 | { | 1585 | { |
| 1586 | tuple.Index = YesNoType.Yes == index ? 1 : 0; | 1586 | symbol.Index = YesNoType.Yes == index ? 1 : 0; |
| 1587 | } | 1587 | } |
| 1588 | 1588 | ||
| 1589 | if (YesNoType.NotSet != aspDetailedError) | 1589 | if (YesNoType.NotSet != aspDetailedError) |
| 1590 | { | 1590 | { |
| 1591 | tuple.AspDetailedError = YesNoType.Yes == aspDetailedError ? 1 : 0; | 1591 | symbol.AspDetailedError = YesNoType.Yes == aspDetailedError ? 1 : 0; |
| 1592 | } | 1592 | } |
| 1593 | 1593 | ||
| 1594 | if (CompilerConstants.LongNotSet != cacheControlMaxAge) | 1594 | if (CompilerConstants.LongNotSet != cacheControlMaxAge) |
| 1595 | { | 1595 | { |
| 1596 | tuple.CacheControlMaxAge = unchecked((int)cacheControlMaxAge); | 1596 | symbol.CacheControlMaxAge = unchecked((int)cacheControlMaxAge); |
| 1597 | } | 1597 | } |
| 1598 | 1598 | ||
| 1599 | if (YesNoType.NotSet != notCustomError) | 1599 | if (YesNoType.NotSet != notCustomError) |
| 1600 | { | 1600 | { |
| 1601 | tuple.NoCustomError = YesNoType.Yes == notCustomError ? 1 : 0; | 1601 | symbol.NoCustomError = YesNoType.Yes == notCustomError ? 1 : 0; |
| 1602 | } | 1602 | } |
| 1603 | 1603 | ||
| 1604 | if (accessSSLFlagsSet) | 1604 | if (accessSSLFlagsSet) |
| 1605 | { | 1605 | { |
| 1606 | tuple.AccessSSLFlags = accessSSLFlags; | 1606 | symbol.AccessSSLFlags = accessSSLFlags; |
| 1607 | } | 1607 | } |
| 1608 | 1608 | ||
| 1609 | if (null != authenticationProviders) | 1609 | if (null != authenticationProviders) |
| 1610 | { | 1610 | { |
| 1611 | tuple.AuthenticationProviders = authenticationProviders; | 1611 | symbol.AuthenticationProviders = authenticationProviders; |
| 1612 | } | 1612 | } |
| 1613 | } | 1613 | } |
| 1614 | 1614 | ||
| @@ -1682,7 +1682,7 @@ namespace WixToolset.Iis | |||
| 1682 | 1682 | ||
| 1683 | if (!this.Messaging.EncounteredError) | 1683 | if (!this.Messaging.EncounteredError) |
| 1684 | { | 1684 | { |
| 1685 | section.AddTuple(new IIsWebErrorTuple(sourceLineNumbers) | 1685 | section.AddSymbol(new IIsWebErrorSymbol(sourceLineNumbers) |
| 1686 | { | 1686 | { |
| 1687 | ErrorCode = errorCode, | 1687 | ErrorCode = errorCode, |
| 1688 | SubCode = subCode, | 1688 | SubCode = subCode, |
| @@ -1756,7 +1756,7 @@ namespace WixToolset.Iis | |||
| 1756 | } | 1756 | } |
| 1757 | 1757 | ||
| 1758 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 1758 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 1759 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebSite, parentWeb); | 1759 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebSite, parentWeb); |
| 1760 | break; | 1760 | break; |
| 1761 | default: | 1761 | default: |
| 1762 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 1762 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -1791,7 +1791,7 @@ namespace WixToolset.Iis | |||
| 1791 | 1791 | ||
| 1792 | if (!this.Messaging.EncounteredError) | 1792 | if (!this.Messaging.EncounteredError) |
| 1793 | { | 1793 | { |
| 1794 | var tuple = section.AddTuple(new IIsFilterTuple(sourceLineNumbers, id) | 1794 | var symbol = section.AddSymbol(new IIsFilterSymbol(sourceLineNumbers, id) |
| 1795 | { | 1795 | { |
| 1796 | Name = name, | 1796 | Name = name, |
| 1797 | ComponentRef = componentId, | 1797 | ComponentRef = componentId, |
| @@ -1803,7 +1803,7 @@ namespace WixToolset.Iis | |||
| 1803 | 1803 | ||
| 1804 | if (CompilerConstants.IntegerNotSet != loadOrder) | 1804 | if (CompilerConstants.IntegerNotSet != loadOrder) |
| 1805 | { | 1805 | { |
| 1806 | tuple.LoadOrder = loadOrder; | 1806 | symbol.LoadOrder = loadOrder; |
| 1807 | } | 1807 | } |
| 1808 | } | 1808 | } |
| 1809 | } | 1809 | } |
| @@ -1879,7 +1879,7 @@ namespace WixToolset.Iis | |||
| 1879 | 1879 | ||
| 1880 | if (!this.Messaging.EncounteredError) | 1880 | if (!this.Messaging.EncounteredError) |
| 1881 | { | 1881 | { |
| 1882 | section.AddTuple(new IIsWebLogTuple(sourceLineNumbers, id) | 1882 | section.AddSymbol(new IIsWebLogSymbol(sourceLineNumbers, id) |
| 1883 | { | 1883 | { |
| 1884 | Format = type, | 1884 | Format = type, |
| 1885 | }); | 1885 | }); |
| @@ -1950,7 +1950,7 @@ namespace WixToolset.Iis | |||
| 1950 | 1950 | ||
| 1951 | if (!this.Messaging.EncounteredError) | 1951 | if (!this.Messaging.EncounteredError) |
| 1952 | { | 1952 | { |
| 1953 | section.AddTuple(new IIsPropertyTuple(sourceLineNumbers, id) | 1953 | section.AddSymbol(new IIsPropertySymbol(sourceLineNumbers, id) |
| 1954 | { | 1954 | { |
| 1955 | ComponentRef = componentId, | 1955 | ComponentRef = componentId, |
| 1956 | Attributes = 0, | 1956 | Attributes = 0, |
| @@ -2039,7 +2039,7 @@ namespace WixToolset.Iis | |||
| 2039 | 2039 | ||
| 2040 | if (!this.Messaging.EncounteredError) | 2040 | if (!this.Messaging.EncounteredError) |
| 2041 | { | 2041 | { |
| 2042 | section.AddTuple(new IIsWebServiceExtensionTuple(sourceLineNumbers, id) | 2042 | section.AddSymbol(new IIsWebServiceExtensionSymbol(sourceLineNumbers, id) |
| 2043 | { | 2043 | { |
| 2044 | ComponentRef = componentId, | 2044 | ComponentRef = componentId, |
| 2045 | File = file, | 2045 | File = file, |
| @@ -2118,7 +2118,7 @@ namespace WixToolset.Iis | |||
| 2118 | break; | 2118 | break; |
| 2119 | case "Directory": | 2119 | case "Directory": |
| 2120 | directory = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 2120 | directory = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 2121 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.Directory, directory); | 2121 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.Directory, directory); |
| 2122 | break; | 2122 | break; |
| 2123 | case "DirProperties": | 2123 | case "DirProperties": |
| 2124 | if (null == componentId) | 2124 | if (null == componentId) |
| @@ -2169,7 +2169,7 @@ namespace WixToolset.Iis | |||
| 2169 | } | 2169 | } |
| 2170 | 2170 | ||
| 2171 | log = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 2171 | log = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 2172 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebLog, log); | 2172 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebLog, log); |
| 2173 | break; | 2173 | break; |
| 2174 | default: | 2174 | default: |
| 2175 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 2175 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -2310,12 +2310,12 @@ namespace WixToolset.Iis | |||
| 2310 | 2310 | ||
| 2311 | if (null != application) | 2311 | if (null != application) |
| 2312 | { | 2312 | { |
| 2313 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebApplication, application); | 2313 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebApplication, application); |
| 2314 | } | 2314 | } |
| 2315 | 2315 | ||
| 2316 | if (null != dirProperties) | 2316 | if (null != dirProperties) |
| 2317 | { | 2317 | { |
| 2318 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebDirProperties, dirProperties); | 2318 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebDirProperties, dirProperties); |
| 2319 | } | 2319 | } |
| 2320 | 2320 | ||
| 2321 | if (null != componentId) | 2321 | if (null != componentId) |
| @@ -2326,7 +2326,7 @@ namespace WixToolset.Iis | |||
| 2326 | 2326 | ||
| 2327 | if (!this.Messaging.EncounteredError) | 2327 | if (!this.Messaging.EncounteredError) |
| 2328 | { | 2328 | { |
| 2329 | var tuple = section.AddTuple(new IIsWebSiteTuple(sourceLineNumbers, id) | 2329 | var symbol = section.AddSymbol(new IIsWebSiteSymbol(sourceLineNumbers, id) |
| 2330 | { | 2330 | { |
| 2331 | ComponentRef = componentId, | 2331 | ComponentRef = componentId, |
| 2332 | Description = description, | 2332 | Description = description, |
| @@ -2340,22 +2340,22 @@ namespace WixToolset.Iis | |||
| 2340 | 2340 | ||
| 2341 | if (CompilerConstants.IntegerNotSet != connectionTimeout) | 2341 | if (CompilerConstants.IntegerNotSet != connectionTimeout) |
| 2342 | { | 2342 | { |
| 2343 | tuple.ConnectionTimeout = connectionTimeout; | 2343 | symbol.ConnectionTimeout = connectionTimeout; |
| 2344 | } | 2344 | } |
| 2345 | 2345 | ||
| 2346 | if (CompilerConstants.IntegerNotSet != state) | 2346 | if (CompilerConstants.IntegerNotSet != state) |
| 2347 | { | 2347 | { |
| 2348 | tuple.State = state; | 2348 | symbol.State = state; |
| 2349 | } | 2349 | } |
| 2350 | 2350 | ||
| 2351 | if (0 != attributes) | 2351 | if (0 != attributes) |
| 2352 | { | 2352 | { |
| 2353 | tuple.Attributes = attributes; | 2353 | symbol.Attributes = attributes; |
| 2354 | } | 2354 | } |
| 2355 | 2355 | ||
| 2356 | if (CompilerConstants.IntegerNotSet != sequence) | 2356 | if (CompilerConstants.IntegerNotSet != sequence) |
| 2357 | { | 2357 | { |
| 2358 | tuple.Sequence = sequence; | 2358 | symbol.Sequence = sequence; |
| 2359 | } | 2359 | } |
| 2360 | } | 2360 | } |
| 2361 | } | 2361 | } |
| @@ -2415,7 +2415,7 @@ namespace WixToolset.Iis | |||
| 2415 | 2415 | ||
| 2416 | if (!this.Messaging.EncounteredError) | 2416 | if (!this.Messaging.EncounteredError) |
| 2417 | { | 2417 | { |
| 2418 | section.AddTuple(new IIsHttpHeaderTuple(sourceLineNumbers, id) | 2418 | section.AddSymbol(new IIsHttpHeaderSymbol(sourceLineNumbers, id) |
| 2419 | { | 2419 | { |
| 2420 | HttpHeader = id.Id, | 2420 | HttpHeader = id.Id, |
| 2421 | ParentType = (int)parentType, | 2421 | ParentType = (int)parentType, |
| @@ -2457,7 +2457,7 @@ namespace WixToolset.Iis | |||
| 2457 | break; | 2457 | break; |
| 2458 | case "Directory": | 2458 | case "Directory": |
| 2459 | directory = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 2459 | directory = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 2460 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.Directory, directory); | 2460 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.Directory, directory); |
| 2461 | break; | 2461 | break; |
| 2462 | case "DirProperties": | 2462 | case "DirProperties": |
| 2463 | dirProperties = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); | 2463 | dirProperties = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
| @@ -2472,7 +2472,7 @@ namespace WixToolset.Iis | |||
| 2472 | } | 2472 | } |
| 2473 | 2473 | ||
| 2474 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | 2474 | parentWeb = this.ParseHelper.GetAttributeIdentifierValue(sourceLineNumbers, attrib); |
| 2475 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebSite, parentWeb); | 2475 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebSite, parentWeb); |
| 2476 | break; | 2476 | break; |
| 2477 | default: | 2477 | default: |
| 2478 | this.ParseHelper.UnexpectedAttribute(element, attrib); | 2478 | this.ParseHelper.UnexpectedAttribute(element, attrib); |
| @@ -2576,12 +2576,12 @@ namespace WixToolset.Iis | |||
| 2576 | 2576 | ||
| 2577 | if (null != dirProperties) | 2577 | if (null != dirProperties) |
| 2578 | { | 2578 | { |
| 2579 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebDirProperties, dirProperties); | 2579 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebDirProperties, dirProperties); |
| 2580 | } | 2580 | } |
| 2581 | 2581 | ||
| 2582 | if (null != application) | 2582 | if (null != application) |
| 2583 | { | 2583 | { |
| 2584 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisTupleDefinitions.IIsWebApplication, application); | 2584 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, IisSymbolDefinitions.IIsWebApplication, application); |
| 2585 | } | 2585 | } |
| 2586 | 2586 | ||
| 2587 | // Reference ConfigureIIs since nothing will happen without it | 2587 | // Reference ConfigureIIs since nothing will happen without it |
| @@ -2589,7 +2589,7 @@ namespace WixToolset.Iis | |||
| 2589 | 2589 | ||
| 2590 | if (!this.Messaging.EncounteredError) | 2590 | if (!this.Messaging.EncounteredError) |
| 2591 | { | 2591 | { |
| 2592 | section.AddTuple(new IIsWebVirtualDirTuple(sourceLineNumbers, id) | 2592 | section.AddSymbol(new IIsWebVirtualDirSymbol(sourceLineNumbers, id) |
| 2593 | { | 2593 | { |
| 2594 | ComponentRef = componentId, | 2594 | ComponentRef = componentId, |
| 2595 | WebRef = parentWeb, | 2595 | WebRef = parentWeb, |
| @@ -2603,7 +2603,7 @@ namespace WixToolset.Iis | |||
| 2603 | 2603 | ||
| 2604 | private void AddReferenceToConfigureIIs(IntermediateSection section, SourceLineNumber sourceLineNumbers) | 2604 | private void AddReferenceToConfigureIIs(IntermediateSection section, SourceLineNumber sourceLineNumbers) |
| 2605 | { | 2605 | { |
| 2606 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "ConfigureIIs"); | 2606 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "ConfigureIIs"); |
| 2607 | } | 2607 | } |
| 2608 | } | 2608 | } |
| 2609 | } | 2609 | } |
