forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoreConfiguration.cs
More file actions
29 lines (27 loc) · 756 Bytes
/
CoreConfiguration.cs
File metadata and controls
29 lines (27 loc) · 756 Bytes
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
namespace JavaScriptEngineSwitcher.Core.Configuration
{
using System.Configuration;
/// <summary>
/// Configuration settings of core
/// </summary>
public sealed class CoreConfiguration : ConfigurationSection
{
/// <summary>
/// Gets or sets a name of default JavaScript engine
/// </summary>
[ConfigurationProperty("defaultEngine", DefaultValue = "")]
public string DefaultEngine
{
get { return (string)this["defaultEngine"]; }
set { this["defaultEngine"] = value; }
}
/// <summary>
/// Gets a list of registered JavaScript engines
/// </summary>
[ConfigurationProperty("engines", IsRequired = true)]
public JsEngineRegistrationList Engines
{
get { return (JsEngineRegistrationList)this["engines"]; }
}
}
}