forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIJsEngineSwitcher.cs
More file actions
39 lines (35 loc) · 783 Bytes
/
IJsEngineSwitcher.cs
File metadata and controls
39 lines (35 loc) · 783 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
namespace JavaScriptEngineSwitcher.Core
{
/// <summary>
/// Defines a interface of JS engine switcher
/// </summary>
public interface IJsEngineSwitcher
{
/// <summary>
/// Gets or sets a name of default JS engine
/// </summary>
string DefaultEngineName
{
get;
set;
}
/// <summary>
/// Gets a collection of JS engine factories
/// </summary>
JsEngineFactoryCollection EngineFactories
{
get;
}
/// <summary>
/// Creates a instance of JS engine
/// </summary>
/// <param name="name">JS engine name</param>
/// <returns>JS engine</returns>
IJsEngine CreateEngine(string name);
/// <summary>
/// Creates a instance of default JS engine
/// </summary>
/// <returns>JS engine</returns>
IJsEngine CreateDefaultEngine();
}
}