-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathJsEngineSwitcherOptions.cs
More file actions
42 lines (38 loc) · 966 Bytes
/
JsEngineSwitcherOptions.cs
File metadata and controls
42 lines (38 loc) · 966 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
30
31
32
33
34
35
36
37
38
39
40
41
42
using JavaScriptEngineSwitcher.Core;
namespace JavaScriptEngineSwitcher.Extensions.MsDependencyInjection
{
/// <summary>
/// Options of the JS engine switcher
/// </summary>
public sealed class JsEngineSwitcherOptions
{
/// <summary>
/// Gets or sets a flag for whether to allow usage of the <see cref="JsEngineSwitcher.Current"/> property
/// </summary>
/// <remarks>
/// Required to ensure the usage of an instance of the JS engine switcher that is registered by using
/// the <c>IServiceCollection</c> interface.
/// </remarks>
public bool AllowCurrentProperty
{
get;
set;
}
/// <summary>
/// Gets or sets a name of default JS engine
/// </summary>
public string DefaultEngineName
{
get;
set;
}
/// <summary>
/// Constructs an instance of the JS engine switcher options
/// </summary>
public JsEngineSwitcherOptions()
{
AllowCurrentProperty = true;
DefaultEngineName = string.Empty;
}
}
}