forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNodeSettings.cs
More file actions
38 lines (34 loc) · 682 Bytes
/
NodeSettings.cs
File metadata and controls
38 lines (34 loc) · 682 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
using System;
namespace JavaScriptEngineSwitcher.Node
{
/// <summary>
/// Settings of the Node JS engine
/// </summary>
public sealed class NodeSettings
{
/// <summary>
/// Gets or sets a interval to wait before the script execution times out
/// </summary>
public TimeSpan TimeoutInterval
{
get;
set;
}
/// <summary>
/// Gets or sets a flag for whether to use the Node.js built-in library
/// </summary>
public bool UseBuiltinLibrary
{
get;
set;
}
/// <summary>
/// Constructs an instance of the Node settings
/// </summary>
public NodeSettings()
{
TimeoutInterval = TimeSpan.Zero;
UseBuiltinLibrary = false;
}
}
}