diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:48:58 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:48:58 -0700 |
commit | d77dca43e87e8711b19910a8fd49138f939bf0a4 (patch) | |
tree | 650235e3577bde24518af53e001b7bcbac055da3 /src/ext/Msmq/wixext/MsmqExtensionData.cs | |
parent | 4426b8745595b6e2c709e08871d04efbf574c1f5 (diff) | |
download | wix-d77dca43e87e8711b19910a8fd49138f939bf0a4.tar.gz wix-d77dca43e87e8711b19910a8fd49138f939bf0a4.tar.bz2 wix-d77dca43e87e8711b19910a8fd49138f939bf0a4.zip |
Move Msmq.wixext into ext
Diffstat (limited to 'src/ext/Msmq/wixext/MsmqExtensionData.cs')
-rw-r--r-- | src/ext/Msmq/wixext/MsmqExtensionData.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ext/Msmq/wixext/MsmqExtensionData.cs b/src/ext/Msmq/wixext/MsmqExtensionData.cs new file mode 100644 index 00000000..91485724 --- /dev/null +++ b/src/ext/Msmq/wixext/MsmqExtensionData.cs | |||
@@ -0,0 +1,30 @@ | |||
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.Msmq | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Extensibility; | ||
7 | |||
8 | /// <summary> | ||
9 | /// The WiX Toolset MSMQ Extension. | ||
10 | /// </summary> | ||
11 | public sealed class MsmqExtensionData : BaseExtensionData | ||
12 | { | ||
13 | /// <summary> | ||
14 | /// Gets the default culture. | ||
15 | /// </summary> | ||
16 | /// <value>The default culture.</value> | ||
17 | public override string DefaultCulture => "en-US"; | ||
18 | |||
19 | public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) | ||
20 | { | ||
21 | symbolDefinition = MsmqSymbolDefinitions.ByName(name); | ||
22 | return symbolDefinition != null; | ||
23 | } | ||
24 | |||
25 | public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions) | ||
26 | { | ||
27 | return Intermediate.Load(typeof(MsmqExtensionData).Assembly, "WixToolset.Msmq.msmq.wixlib", symbolDefinitions); | ||
28 | } | ||
29 | } | ||
30 | } | ||