forked from scriptcs/scriptcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIScriptExecutor.cs
More file actions
40 lines (24 loc) · 1.04 KB
/
IScriptExecutor.cs
File metadata and controls
40 lines (24 loc) · 1.04 KB
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
using System.Collections.Generic;
using System.Reflection;
namespace ScriptCs.Contracts
{
public interface IScriptExecutor
{
AssemblyReferences References { get; }
IReadOnlyCollection<string> Namespaces { get; }
IScriptEngine ScriptEngine { get; }
IFileSystem FileSystem { get; }
ScriptPackSession ScriptPackSession { get; }
void ImportNamespaces(params string[] namespaces);
void RemoveNamespaces(params string[] namespaces);
void AddReferences(params Assembly[] references);
void RemoveReferences(params Assembly[] references);
void AddReferences(params string[] references);
void RemoveReferences(params string[] references);
void Initialize(IEnumerable<string> paths, IEnumerable<IScriptPack> scriptPacks, params string[] scriptArgs);
void Reset();
void Terminate();
ScriptResult Execute(string script, params string[] scriptArgs);
ScriptResult ExecuteScript(string script, params string[] scriptArgs);
}
}