blob: 632025c7c5fb04ad57eefd3c7b129fff1c177978 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
// 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 WixToolset.Mba.Host
{
using System;
using System.Configuration;
/// <summary>
/// Handler for the Host configuration section.
/// </summary>
public sealed class HostSection : ConfigurationSection
{
private static readonly ConfigurationProperty assemblyNameProperty = new ConfigurationProperty("assemblyName", typeof(string), null, ConfigurationPropertyOptions.IsRequired);
private static readonly ConfigurationProperty supportedFrameworksProperty = new ConfigurationProperty("", typeof(SupportedFrameworkElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
/// <summary>
/// Creates a new instance of the <see cref="HostSection"/> class.
/// </summary>
public HostSection()
{
}
/// <summary>
/// Gets the name of the assembly that contians the <see cref="Core.IBootstrapperApplicationFactory"/> child class.
/// </summary>
/// <remarks>
/// The assembly specified by this name must contain the <see cref="Core.BootstrapperApplicationFactoryAttribute"/> to identify
/// the type of the <see cref="Core.IBootstrapperApplicationFactory"/> child class.
/// </remarks>
[ConfigurationProperty("assemblyName", IsRequired = true)]
public string AssemblyName
{
get { return (string)base[assemblyNameProperty]; }
set { base[assemblyNameProperty] = value; }
}
/// <summary>
/// Gets the <see cref="SupportedFrameworkElementCollection"/> of supported frameworks for the host configuration.
/// </summary>
[ConfigurationProperty("", IsDefaultCollection = true)]
[ConfigurationCollection(typeof(SupportedFrameworkElement))]
public SupportedFrameworkElementCollection SupportedFrameworks
{
get { return (SupportedFrameworkElementCollection)base[supportedFrameworksProperty]; }
}
}
}
|