aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleTupleDefinitions.cs
blob: b2c8c4845df431e6e7917d201edb0b5096c46974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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.

namespace Example.Extension
{
    using WixToolset.Data;
    using WixToolset.Data.Burn;

    public static class ExampleTupleDefinitions
    {
        public const string ExampleName = "Example";

        public static readonly IntermediateTupleDefinition Example = new IntermediateTupleDefinition(
            ExampleName,
            new[]
            {
                new IntermediateFieldDefinition(nameof(ExampleTupleFields.Example), IntermediateFieldType.String),
                new IntermediateFieldDefinition(nameof(ExampleTupleFields.Value), IntermediateFieldType.String),
            },
            typeof(ExampleTuple));

        public static readonly IntermediateTupleDefinition ExampleSearch = new IntermediateTupleDefinition(
            nameof(ExampleSearch),
            new[]
            {
                new IntermediateFieldDefinition(nameof(ExampleTupleFields.Example), IntermediateFieldType.String),
                new IntermediateFieldDefinition(nameof(ExampleSearchTupleFields.SearchFor), IntermediateFieldType.String),
            },
            typeof(ExampleSearchTuple));

        static ExampleTupleDefinitions()
        {
            ExampleSearch.AddTag(BurnConstants.BundleExtensionSearchTupleDefinitionTag);
        }
    }
}